結果
問題 |
No.513 宝探し2
|
ユーザー |
![]() |
提出日時 | 2017-05-25 14:15:58 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 63 ms / 2,000 ms |
コード長 | 354 bytes |
コンパイル時間 | 56 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 26,200 KB |
平均クエリ数 | 2.75 |
最終ジャッジ日時 | 2024-07-17 01:11:53 |
合計ジャッジ時間 | 1,600 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
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