結果

問題 No.513 宝探し2
ユーザー mastersatoshimastersatoshi
提出日時 2017-06-22 10:05:45
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 506 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 7,168 KB
実行使用メモリ 25,604 KB
平均クエリ数 1.00
最終ジャッジ日時 2024-07-16 13:53:45
合計ジャッジ時間 3,352 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#import pdb; pdb.set_trace()
import sys
import math

def main():
    
    print "0 0"
    sys.stdout.flush()
    line = int(raw_input())
    
    if line == 0:
        sys.exit()
        
    print line + " 0"
    sys.stdout.flush()
    
    line2 = int(raw_input())
    
    if line2 == 0:
        sys.exit()
        
    nline1 = int(line)
    nline2 = int(line2) / 2

    print str(nline1 - nline2) + " " + int(nline2)
    sys.stdout.flush()
    sys.exit()
        
if __name__ == '__main__':
    main()
0