結果

問題 No.1219 Mancala Combo
ユーザー ああいいああいい
提出日時 2022-01-10 14:05:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 82,028 KB
実行使用メモリ 105,540 KB
最終ジャッジ日時 2024-04-26 20:06:57
合計ジャッジ時間 2,727 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,000 KB
testcase_01 AC 40 ms
53,364 KB
testcase_02 AC 38 ms
53,364 KB
testcase_03 AC 38 ms
52,268 KB
testcase_04 AC 39 ms
52,704 KB
testcase_05 AC 38 ms
53,280 KB
testcase_06 AC 38 ms
52,920 KB
testcase_07 AC 38 ms
53,100 KB
testcase_08 AC 38 ms
51,812 KB
testcase_09 AC 39 ms
52,552 KB
testcase_10 AC 39 ms
52,184 KB
testcase_11 AC 38 ms
52,432 KB
testcase_12 AC 38 ms
51,624 KB
testcase_13 AC 39 ms
52,364 KB
testcase_14 AC 38 ms
51,960 KB
testcase_15 AC 38 ms
53,576 KB
testcase_16 AC 38 ms
52,876 KB
testcase_17 AC 67 ms
87,528 KB
testcase_18 AC 74 ms
91,848 KB
testcase_19 AC 65 ms
85,372 KB
testcase_20 AC 76 ms
95,584 KB
testcase_21 AC 61 ms
80,824 KB
testcase_22 AC 70 ms
89,276 KB
testcase_23 AC 74 ms
94,720 KB
testcase_24 AC 67 ms
84,596 KB
testcase_25 AC 64 ms
83,852 KB
testcase_26 AC 73 ms
90,944 KB
testcase_27 AC 80 ms
100,460 KB
testcase_28 AC 92 ms
105,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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')
0