結果

問題 No.514 宝探し3
コンテスト
ユーザー rpy3cpp
提出日時 2017-05-05 23:07:10
言語 Python3
(3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 73 ms / 2,000 ms
+ 999µs
コード長 227 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 51 ms
コンパイル使用メモリ 14,592 KB
実行使用メモリ 10,112 KB
平均クエリ数 2.79
最終ジャッジ日時 2026-11-20 21:03:10
合計ジャッジ時間 1,687 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge5_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

M = 1000000000
print(0, 0)
A = int(input())  # AX + AY
if A != 0:
    print(0, M)
    B = int(input())  # AX + M - AY
    if B != 0:
        AX = (A + B - M)//2
        AY = A - AX
        print(AX, AY)
        C = int(input())
0