結果
| 問題 | No.305 鍵(2) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-05-31 18:43:47 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 541 bytes |
| 記録 | |
| コンパイル時間 | 250 ms |
| コンパイル使用メモリ | 77,416 KB |
| 最終ジャッジ日時 | 2025-12-03 20:48:16 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 RE * 6 |
ソースコード
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