結果

問題 No.1219 Mancala Combo
ユーザー 37zigen37zigen
提出日時 2020-09-07 08:10:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 153 bytes
コンパイル時間 386 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 30,908 KB
最終ジャッジ日時 2023-08-19 16:22:49
合計ジャッジ時間 3,367 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,792 KB
testcase_01 AC 14 ms
8,120 KB
testcase_02 AC 14 ms
7,884 KB
testcase_03 AC 14 ms
7,792 KB
testcase_04 AC 14 ms
7,768 KB
testcase_05 AC 14 ms
8,160 KB
testcase_06 AC 14 ms
7,912 KB
testcase_07 AC 14 ms
8,060 KB
testcase_08 AC 15 ms
7,840 KB
testcase_09 AC 14 ms
8,116 KB
testcase_10 AC 15 ms
7,852 KB
testcase_11 AC 14 ms
8,160 KB
testcase_12 AC 14 ms
7,796 KB
testcase_13 AC 14 ms
8,172 KB
testcase_14 AC 14 ms
8,116 KB
testcase_15 AC 14 ms
7,844 KB
testcase_16 AC 14 ms
7,780 KB
testcase_17 AC 55 ms
20,048 KB
testcase_18 AC 102 ms
24,376 KB
testcase_19 AC 50 ms
18,732 KB
testcase_20 AC 105 ms
24,880 KB
testcase_21 AC 45 ms
17,672 KB
testcase_22 AC 92 ms
22,756 KB
testcase_23 AC 64 ms
22,428 KB
testcase_24 AC 81 ms
20,384 KB
testcase_25 AC 47 ms
18,212 KB
testcase_26 AC 103 ms
23,928 KB
testcase_27 AC 71 ms
24,828 KB
testcase_28 AC 142 ms
30,908 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