結果

問題 No.514 宝探し3
ユーザー tktk_snsntktk_snsn
提出日時 2021-03-26 12:55:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 381 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 24,524 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-24 10:16:38
合計ジャッジ時間 1,769 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
24,524 KB
testcase_01 AC 38 ms
23,700 KB
testcase_02 AC 38 ms
23,760 KB
testcase_03 AC 39 ms
24,460 KB
testcase_04 AC 38 ms
24,396 KB
testcase_05 AC 39 ms
23,752 KB
testcase_06 AC 39 ms
23,848 KB
testcase_07 AC 39 ms
24,396 KB
testcase_08 AC 39 ms
23,748 KB
testcase_09 AC 39 ms
23,824 KB
testcase_10 AC 39 ms
24,240 KB
testcase_11 AC 39 ms
23,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

inf = 10**9
print(0, 0)
d = int(input())
if d == 0:
    exit()

if d <= inf:
    print(0, d)
    dd = int(input())
    if dd == 0:
        exit()
    print(dd // 2, d - dd // 2)
    _ = input()
    exit()

print(inf, inf)
d = int(input())
if d == 0:
    exit()

print(inf, inf - d)
dd = int(input())
if dd == 0:
    exit()
print(inf - dd // 2, inf - d + dd // 2)
_ = input()
exit()
0