結果
| 問題 | No.305 鍵(2) |
| コンテスト | |
| ユーザー |
tookunn_1213
|
| 提出日時 | 2015-11-27 23:55:06 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 123 ms / 2,000 ms |
| コード長 | 487 bytes |
| 記録 | |
| コンパイル時間 | 142 ms |
| コンパイル使用メモリ | 77,552 KB |
| 最終ジャッジ日時 | 2025-12-03 17:57:42 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
import sys
preX = 0
ans = [0 for i in range(10)]
sys.stdout.write(''.join(str(j) for j in ans) + '\n')
sys.stdout.flush()
a,b = raw_input().split()
a = int(a)
if a != 10:
preX = a
it = 0
ans[it] += 1
while True:
sys.stdout.write(''.join(str(j) for j in ans) + '\n')
sys.stdout.flush()
x,res = raw_input().split()
if int(x) == 10:
break
else:
if int(x) > preX:
it += 1
preX = int(x)
elif int(x) < preX:
ans[it] -= 1
it += 1
else:
ans[it] += 1
tookunn_1213