結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-05-31 18:43:47 |
| 言語 | Python2 (2.7.18) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 541 bytes |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 40,412 KB |
| 最終ジャッジ日時 | 2024-07-16 23:52:47 |
| 合計ジャッジ時間 | 6,587 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 12 |
ソースコード
l = list("0000000000")
while True:
print "".join(l)
x,state = raw_input().split(" ")
x = int(x)
if (state == "unlocked"):
break
new_l = []
for i in range(10):
_l = [] + l
_l[i] = str((int(l[i]) + 1 ) % 10)
print "".join(_l)
y,state = raw_input().split(" ")
y = int(y)
if (x == y ):
new_l.append(str((int(_l[i]) + 1 ) % 10 ))
elif (x < y ):
new_l.append(_l[i])
else:
new_l.append(l[i])
l = new_l