結果

問題 No.513 宝探し2
ユーザー mastersatoshimastersatoshi
提出日時 2017-06-22 10:05:45
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 506 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 6,580 KB
実行使用メモリ 24,420 KB
平均クエリ数 1.00
最終ジャッジ日時 2023-09-23 14:14:33
合計ジャッジ時間 2,937 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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 33 ms
24,048 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