結果

問題 No.513 宝探し2
ユーザー JunOnumaJunOnuma
提出日時 2017-05-25 14:15:58
言語 Python2
(2.7.18)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 354 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 6,564 KB
実行使用メモリ 25,156 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-24 01:16:57
合計ジャッジ時間 1,421 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
23,412 KB
testcase_01 AC 31 ms
24,996 KB
testcase_02 AC 37 ms
24,620 KB
testcase_03 AC 30 ms
24,048 KB
testcase_04 AC 47 ms
24,840 KB
testcase_05 AC 39 ms
23,652 KB
testcase_06 AC 49 ms
25,156 KB
testcase_07 AC 39 ms
24,440 KB
testcase_08 AC 28 ms
23,844 KB
testcase_09 AC 29 ms
23,592 KB
testcase_10 AC 49 ms
24,956 KB
testcase_11 AC 31 ms
24,916 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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