結果

問題 No.513 宝探し2
ユーザー tktk_snsntktk_snsn
提出日時 2021-03-26 12:57:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 382 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 10,752 KB
実行使用メモリ 24,524 KB
平均クエリ数 2.83
最終ジャッジ日時 2023-09-24 02:55:06
合計ジャッジ時間 1,652 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
24,056 KB
testcase_01 AC 39 ms
23,860 KB
testcase_02 AC 40 ms
24,092 KB
testcase_03 AC 39 ms
24,348 KB
testcase_04 AC 40 ms
24,524 KB
testcase_05 AC 38 ms
23,804 KB
testcase_06 AC 38 ms
23,744 KB
testcase_07 AC 39 ms
24,076 KB
testcase_08 AC 39 ms
23,676 KB
testcase_09 AC 39 ms
24,160 KB
testcase_10 AC 39 ms
24,092 KB
testcase_11 AC 38 ms
23,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

inf = 100000
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