結果

問題 No.305 鍵(2)
ユーザー 🍡yurahuna🍡yurahuna
提出日時 2015-12-22 00:43:32
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 511 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 6,532 KB
実行使用メモリ 24,336 KB
平均クエリ数 40.77
最終ジャッジ日時 2023-09-23 08:20:12
合計ジャッジ時間 2,398 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 38 ms
23,568 KB
testcase_02 RE -
testcase_03 AC 37 ms
23,976 KB
testcase_04 AC 37 ms
23,964 KB
testcase_05 AC 42 ms
23,328 KB
testcase_06 AC 39 ms
24,072 KB
testcase_07 RE -
testcase_08 AC 39 ms
24,000 KB
testcase_09 AC 38 ms
23,916 KB
testcase_10 AC 38 ms
24,312 KB
testcase_11 AC 38 ms
23,436 KB
testcase_12 AC 37 ms
24,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
li = [0]*10

print "".join(map(str, li))
sys.stdout.flush()
message = raw_input()
sys.stdout.flush()
n2 = int(message.split()[0])
sys.stdout.flush()
n1 = n2
i = 0
while n2 < 10:
    if n2 == n1:
        li[i] += 1
    elif n2 > n1:
        i += 1
        li[i] += 1
    else:
        li[i] -= 1
        i += 1
        li[i] += 1
    print "".join(map(str, li))
    sys.stdout.flush()
    message = raw_input()
    sys.stdout.flush()
    n1 = n2
    n2 = int(message.split()[0])
    sys.stdout.flush()
0