結果

問題 No.1219 Mancala Combo
ユーザー 37zigen37zigen
提出日時 2020-09-07 08:10:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 147 ms / 2,000 ms
コード長 153 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 30,296 KB
最終ジャッジ日時 2024-05-06 23:21:42
合計ジャッジ時間 3,008 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,496 KB
testcase_01 AC 29 ms
10,496 KB
testcase_02 AC 30 ms
10,624 KB
testcase_03 AC 30 ms
10,368 KB
testcase_04 AC 29 ms
10,752 KB
testcase_05 AC 30 ms
10,496 KB
testcase_06 AC 30 ms
10,496 KB
testcase_07 AC 31 ms
10,496 KB
testcase_08 AC 31 ms
10,624 KB
testcase_09 AC 31 ms
10,496 KB
testcase_10 AC 31 ms
10,624 KB
testcase_11 AC 30 ms
10,624 KB
testcase_12 AC 31 ms
10,496 KB
testcase_13 AC 31 ms
10,624 KB
testcase_14 AC 30 ms
10,496 KB
testcase_15 AC 30 ms
10,368 KB
testcase_16 AC 31 ms
10,624 KB
testcase_17 AC 79 ms
21,124 KB
testcase_18 AC 126 ms
24,424 KB
testcase_19 AC 62 ms
19,744 KB
testcase_20 AC 117 ms
24,956 KB
testcase_21 AC 57 ms
18,640 KB
testcase_22 AC 100 ms
23,144 KB
testcase_23 AC 78 ms
23,296 KB
testcase_24 AC 89 ms
21,348 KB
testcase_25 AC 61 ms
19,644 KB
testcase_26 AC 108 ms
24,152 KB
testcase_27 AC 85 ms
25,256 KB
testcase_28 AC 147 ms
30,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=[0]+list(map(int,input().split()))+[0]
for i in range(N,0,-1):
    A[i]+=A[i+1]
    if A[i]%i!=0:
        exit(print("No"))
print("Yes")
0