結果
問題 |
No.513 宝探し2
|
ユーザー |
![]() |
提出日時 | 2020-07-24 21:43:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 379 bytes |
コンパイル時間 | 1,530 ms |
コンパイル使用メモリ | 165,228 KB |
実行使用メモリ | 40,396 KB |
最終ジャッジ日時 | 2024-07-17 04:07:13 |
合計ジャッジ時間 | 8,137 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 11 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=(0);i<(n);i++) using namespace std; typedef long long ll; int ask(int x, int y){ cout << x << " " << y; int ret; cin >> ret; if(ret == 0) exit(0); return ret; } int main(){ cin.tie(0); ios::sync_with_stdio(false); int a = ask(0, 0); int b = ask(0, 1e7); int x = (a + b - 1e7) / 2; int y = a - x; ask(x, y); }