結果

問題 No.514 宝探し3
ユーザー JunOnumaJunOnuma
提出日時 2017-05-25 14:17:45
言語 Python2
(2.7.18)
結果
MLE  
実行時間 -
コード長 366 bytes
コンパイル時間 61 ms
コンパイル使用メモリ 6,516 KB
実行使用メモリ 824,300 KB
平均クエリ数 0.25
最終ジャッジ日時 2023-09-23 14:08:58
合計ジャッジ時間 2,157 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
23,976 KB
testcase_01 MLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
print 0,0
sys.stdout.flush()
d1 = int(raw_input())
if d1 == 0:
    sys.exit()
print 1000000000,0
sys.stdout.flush()
d2 = int(raw_input())
if d2 == 0:
    sys.exit()
for x in range(min(1000000001,d1+1)):
    y = d1 - x
    d = abs(1000000000 - x) + y
    if d == d2:
        print x,y
        sys.stdout.flush()
        d3 = int(raw_input())
        break
0