結果

問題 No.513 宝探し2
ユーザー Mr.FukuMr.Fuku
提出日時 2018-08-04 23:17:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 305 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 24,456 KB
平均クエリ数 3.50
最終ジャッジ日時 2023-09-23 16:12:17
合計ジャッジ時間 3,026 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

x = 100000
zahyo = [0,x,x,0]
kyori = []

for i in range(3):
    print(zahyo[i],zahyo[i+1])
    kyori.append(int(input()))
    if kyori[i]==0:
        exit(0)

kouho = [[kyori[0],x-kyori[1]],[x-kyori[1],kyori[0]]]
if kyori[2]==max(x-kouho[0][0],kouho[0][1]):
    print(*kouho[0])
else:
    print(*kouho[1])
0