結果

問題 No.305 鍵(2)
ユーザー 🍡yurahuna
提出日時 2015-12-22 00:41:17
言語 Python2
(2.7.18)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 429 bytes
コンパイル時間 50 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 40,912 KB
最終ジャッジ日時 2024-07-16 22:15:04
合計ジャッジ時間 6,476 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other TLE * 1 -- * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
li = [0]*10

print "".join(map(str, li))
#sys.stdout.flush()
message = raw_input()
n2 = int(message.split()[0])
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()
    n1 = n2
    n2 = int(message.split()[0])
0