結果

問題 No.514 宝探し3
ユーザー ei1333333ei1333333
提出日時 2017-05-05 22:39:05
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 316 bytes
コンパイル時間 2,589 ms
コンパイル使用メモリ 143,672 KB
実行使用メモリ 24,348 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-23 13:21:01
合計ジャッジ時間 2,902 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,628 KB
testcase_01 AC 22 ms
23,508 KB
testcase_02 AC 22 ms
23,388 KB
testcase_03 AC 23 ms
23,496 KB
testcase_04 AC 23 ms
23,736 KB
testcase_05 AC 22 ms
23,640 KB
testcase_06 AC 23 ms
24,312 KB
testcase_07 AC 23 ms
24,348 KB
testcase_08 AC 23 ms
24,012 KB
testcase_09 AC 24 ms
23,940 KB
testcase_10 AC 24 ms
23,808 KB
testcase_11 AC 22 ms
23,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0