結果
問題 | No.538 N.G.S. |
ユーザー |
|
提出日時 | 2020-04-15 22:02:14 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 364 bytes |
コンパイル時間 | 1,256 ms |
コンパイル使用メモリ | 69,984 KB |
最終ジャッジ日時 | 2025-01-09 19:20:14 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 51 |
ソースコード
#include <iostream> #include <vector> using lint = long long; void solve() { std::vector<lint> xs(3); for (auto& x : xs) std::cin >> x; std::cout << (xs[2] - xs[1]) * (xs[2] - xs[1]) / (xs[1] - xs[0]) + xs[2] << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }