結果

問題 No.513 宝探し2
ユーザー JunOnumaJunOnuma
提出日時 2017-05-25 14:14:42
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 300 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 6,672 KB
実行使用メモリ 25,040 KB
平均クエリ数 2.92
最終ジャッジ日時 2023-09-23 14:08:05
合計ジャッジ時間 1,586 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
23,412 KB
testcase_01 AC 40 ms
24,996 KB
testcase_02 AC 46 ms
24,748 KB
testcase_03 AC 37 ms
23,460 KB
testcase_04 AC 57 ms
25,040 KB
testcase_05 AC 46 ms
23,988 KB
testcase_06 AC 59 ms
24,804 KB
testcase_07 AC 49 ms
24,780 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 62 ms
24,720 KB
testcase_11 AC 37 ms
24,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
print 0,0
sys.stdout.flush()
d1 = int(raw_input())
print 100000,0
sys.stdout.flush()
d2 = int(raw_input())
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