結果

問題 No.514 宝探し3
ユーザー qibqib
提出日時 2023-02-07 23:08:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 107 ms / 2,000 ms
コード長 183 bytes
コンパイル時間 968 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 87,808 KB
平均クエリ数 2.67
最終ジャッジ日時 2023-09-19 04:24:27
合計ジャッジ時間 3,868 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
87,032 KB
testcase_01 AC 102 ms
87,120 KB
testcase_02 AC 104 ms
87,808 KB
testcase_03 AC 103 ms
87,352 KB
testcase_04 AC 102 ms
87,448 KB
testcase_05 AC 105 ms
87,692 KB
testcase_06 AC 104 ms
87,616 KB
testcase_07 AC 104 ms
87,796 KB
testcase_08 AC 102 ms
87,168 KB
testcase_09 AC 102 ms
87,188 KB
testcase_10 AC 102 ms
87,420 KB
testcase_11 AC 103 ms
87,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

def send(s):
  print(s)
  sys.stdout.flush()
  res = int(input())
  if res == 0:
    exit()
  return res

a = send("0 0")
b = send(f"{a} 0")
send(f"{a - b // 2} {b // 2}")
0