結果
問題 |
No.1738 What's in the box?
|
ユーザー |
|
提出日時 | 2021-11-12 21:46:15 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 208 bytes |
コンパイル時間 | 279 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 58,752 KB |
最終ジャッジ日時 | 2024-11-25 17:51:16 |
合計ジャッジ時間 | 4,712 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 10 WA * 60 |
ソースコード
n,m = map(int,input().split()) W = list(map(int,input().split())) ans = [] for i in range(n-1): if W[i] == 0: ans.append(0) else: ans.append(1) m -= 1 ans.append(m) print(*ans)