結果
問題 |
No.1219 Mancala Combo
|
ユーザー |
|
提出日時 | 2023-08-31 08:38:50 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 220 bytes |
コンパイル時間 | 331 ms |
コンパイル使用メモリ | 82,816 KB |
実行使用メモリ | 102,016 KB |
最終ジャッジ日時 | 2025-01-03 04:28:50 |
合計ジャッジ時間 | 3,543 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 12 |
ソースコード
N = int(input()) A = list(map(int, input().split())) cnt = 0 for i in range(N-1, -1, -1): if A[i] > i+1 or (A[i] + cnt) % (i+1) != 0: print('No') exit() if A[i] > 0: cnt += 1 print('Yes')