結果
| 問題 | No.305 鍵(2) |
| コンテスト | |
| ユーザー |
🍡yurahuna
|
| 提出日時 | 2015-12-22 00:48:15 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 427 bytes |
| 記録 | |
| コンパイル時間 | 155 ms |
| コンパイル使用メモリ | 77,476 KB |
| 最終ジャッジ日時 | 2025-12-03 18:51:51 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 RE * 3 |
ソースコード
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])
🍡yurahuna