結果

問題 No.513 宝探し2
ユーザー pluto77pluto77
提出日時 2017-05-21 11:24:56
言語 Python2
(2.7.18)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 176 bytes
コンパイル時間 738 ms
コンパイル使用メモリ 6,696 KB
実行使用メモリ 24,108 KB
平均クエリ数 2.83
最終ジャッジ日時 2023-09-24 01:16:48
合計ジャッジ時間 1,617 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
24,036 KB
testcase_01 AC 28 ms
23,616 KB
testcase_02 AC 27 ms
23,544 KB
testcase_03 AC 29 ms
24,108 KB
testcase_04 AC 27 ms
23,436 KB
testcase_05 AC 28 ms
23,688 KB
testcase_06 AC 28 ms
23,856 KB
testcase_07 AC 27 ms
23,616 KB
testcase_08 AC 27 ms
24,048 KB
testcase_09 AC 27 ms
24,048 KB
testcase_10 AC 27 ms
23,976 KB
testcase_11 AC 28 ms
23,604 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

def f(m,n):
 print m,n
 sys.stdout.flush()
 res=int(raw_input())
 if res==0:
  sys.exit()
 return res

a=f(0,0)
b=f(0,1000000000)
x=(a+b-1000000000)/2
y=a-x
f(x,y)
0