結果
問題 |
No.1219 Mancala Combo
|
ユーザー |
|
提出日時 | 2020-09-04 21:47:06 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 232 bytes |
コンパイル時間 | 302 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 30,812 KB |
最終ジャッジ日時 | 2024-11-26 12:27:35 |
合計ジャッジ時間 | 2,908 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 12 |
ソースコード
n, *a = map(int, open(0).read().split()) cum = 0 for i in range(n - 1, 0, -1): if a[i] + cum == 0: continue if (a[i] + cum) % (i + 1) == 0: cum += 1 else: print('No') exit() print('Yes')