結果

問題 No.514 宝探し3
ユーザー hedwig100hedwig100
提出日時 2020-05-28 12:03:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 24,412 KB
平均クエリ数 2.67
最終ジャッジ日時 2023-09-24 03:35:43
合計ジャッジ時間 1,346 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
23,968 KB
testcase_01 AC 31 ms
23,632 KB
testcase_02 AC 33 ms
23,880 KB
testcase_03 AC 34 ms
23,708 KB
testcase_04 AC 37 ms
24,412 KB
testcase_05 AC 36 ms
24,240 KB
testcase_06 AC 30 ms
23,732 KB
testcase_07 AC 32 ms
23,860 KB
testcase_08 AC 31 ms
24,276 KB
testcase_09 AC 32 ms
23,932 KB
testcase_10 AC 32 ms
24,176 KB
testcase_11 AC 32 ms
24,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.setrecursionlimit(10000000)
MOD = 10 ** 9 + 7
INF = 10 ** 15

def ask(x,y):
    print(x,y,flush = True)
    d = int(input())
    if d == 0:
        exit()
    return d

d1 = ask(0,0)
d2 = ask(d1,0)
ask(d1 - d2//2,d2//2)
0