結果

問題 No.513 宝探し2
ユーザー mastersatoshi
提出日時 2017-06-22 10:04:14
言語 Python2
(2.7.18)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 508 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 40,420 KB
最終ジャッジ日時 2024-07-17 01:15:43
合計ジャッジ時間 6,450 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other TLE * 1 -- * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

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

def main():
    
    print "0 0"
    sys.stdout.flush()
    line = sys.stdin.read()
    
    if line == "":
        sys.exit()
        
    print line + " 0"
    sys.stdout.flush()
    
    line2 = sys.stdin.read()
    
    if line2 == "":
        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