結果
問題 | No.1219 Mancala Combo |
ユーザー |
|
提出日時 | 2022-01-10 14:05:42 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 86 ms / 2,000 ms |
コード長 | 230 bytes |
コンパイル時間 | 178 ms |
コンパイル使用メモリ | 82,452 KB |
実行使用メモリ | 105,812 KB |
最終ジャッジ日時 | 2024-11-14 10:52:49 |
合計ジャッジ時間 | 2,854 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 |
ソースコード
N = int(input()) A = list(map(int,input().split())) import sys Sum = 0 for i in reversed(range(1,N+1)): Sum += A[i-1] if A[i-1] <= i and Sum % i == 0: pass else: print('No') exit() print('Yes')