結果
問題 | No.514 宝探し3 |
ユーザー | ei1333333 |
提出日時 | 2017-05-05 22:39:05 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 21 ms / 2,000 ms |
コード長 | 316 bytes |
コンパイル時間 | 1,351 ms |
コンパイル使用メモリ | 159,404 KB |
実行使用メモリ | 25,348 KB |
平均クエリ数 | 2.75 |
最終ジャッジ日時 | 2024-07-16 12:57:46 |
合計ジャッジ時間 | 2,436 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int t1, t2; cout << 0 << " " << 0 << endl; cin >> t1; if(t1 == 0) return (0); int sz = 1000000000; cout << sz << " " << 0 << endl; cin >> t2; if(t2 == 0) return (0); int y = (t1 + t2 - sz) / 2; cout << t1 - y << " " << y << endl; }