結果

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

テストケース

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

ソースコード

diff #

import sys
N = 10
li = [0]*N
n1 = 0
n2 = 0
i = 0
while n2 < N:
    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()
    n1 = n2
    n2 = int(message.split()[0])
0