結果
問題 |
No.305 鍵(2)
|
ユーザー |
![]() |
提出日時 | 2015-12-22 00:58:51 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 339 bytes |
コンパイル時間 | 61 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 25,616 KB |
平均クエリ数 | 41.15 |
最終ジャッジ日時 | 2024-07-16 08:09:48 |
合計ジャッジ時間 | 2,435 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 RE * 6 |
ソースコード
import sys N = 10 li = [0]*N n1 = 0 n2 = 0 i = 0 while n2 < N: 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])