結果

問題 No.513 宝探し2
ユーザー mastersatoshimastersatoshi
提出日時 2017-06-22 10:08:33
言語 Python2
(2.7.18)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 455 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 6,648 KB
実行使用メモリ 24,312 KB
平均クエリ数 2.67
最終ジャッジ日時 2023-09-24 01:21:00
合計ジャッジ時間 1,438 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
24,312 KB
testcase_01 AC 29 ms
23,652 KB
testcase_02 AC 30 ms
23,676 KB
testcase_03 AC 29 ms
23,328 KB
testcase_04 AC 29 ms
23,688 KB
testcase_05 AC 28 ms
23,604 KB
testcase_06 AC 27 ms
23,640 KB
testcase_07 AC 27 ms
24,024 KB
testcase_08 AC 27 ms
24,048 KB
testcase_09 AC 27 ms
23,964 KB
testcase_10 AC 29 ms
24,060 KB
testcase_11 AC 28 ms
24,276 KB
権限があれば一括ダウンロードができます

ソースコード

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 str(line) + " 0"
    sys.stdout.flush()
    
    line2 = int(raw_input())
    
    if line2 == 0:
        sys.exit()

    print str(line - line2 / 2) + " " + str(line2 / 2)
    sys.stdout.flush()
    sys.exit()
        
if __name__ == '__main__':
    main()
0