結果

問題 No.514 宝探し3
ユーザー 👑 rin204rin204
提出日時 2022-07-05 16:41:37
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 452 ms
コンパイル使用メモリ 87,240 KB
実行使用メモリ 87,548 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-08-22 05:18:56
合計ジャッジ時間 2,914 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
86,588 KB
testcase_01 AC 82 ms
86,588 KB
testcase_02 AC 84 ms
87,204 KB
testcase_03 AC 83 ms
86,860 KB
testcase_04 AC 90 ms
87,100 KB
testcase_05 AC 80 ms
87,284 KB
testcase_06 AC 85 ms
86,708 KB
testcase_07 AC 80 ms
87,448 KB
testcase_08 AC 86 ms
86,924 KB
testcase_09 AC 90 ms
86,728 KB
testcase_10 AC 85 ms
87,548 KB
testcase_11 AC 80 ms
87,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print(0, 0, flush=True)
d1 = int(input())
if d1 == 0:
    exit()
n = 1000000000
print(0, n, flush=True)
d2 = int(input())
if d2 == 0:
    exit()
y = ((d1 + d2 - n) // 2)
x = d1 - y
print(y, x)
0