結果

問題 No.514 宝探し3
ユーザー JunOnumaJunOnuma
提出日時 2017-05-25 14:21:08
言語 Python2
(2.7.18)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 377 bytes
コンパイル時間 56 ms
コンパイル使用メモリ 6,668 KB
実行使用メモリ 23,976 KB
平均クエリ数 0.75
最終ジャッジ日時 2023-09-23 14:09:03
合計ジャッジ時間 3,802 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
23,976 KB
testcase_01 AC 30 ms
23,604 KB
testcase_02 AC 42 ms
23,760 KB
testcase_03 TLE -
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()
x = 0
while x <= min(1000000000, d1):
    y = d1 - x
    d = abs(1000000000 - x) + y
    if d == d2:
        print x,y
        sys.stdout.flush()
        d3 = int(raw_input())
        break
    x += 1
0