結果

問題 No.1219 Mancala Combo
ユーザー 👑 timitimi
提出日時 2020-10-12 08:47:51
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 174 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 1,183 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 30,900 KB
最終ジャッジ日時 2023-09-27 23:35:55
合計ジャッジ時間 5,027 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,776 KB
testcase_01 AC 14 ms
8,232 KB
testcase_02 AC 13 ms
7,872 KB
testcase_03 AC 14 ms
7,912 KB
testcase_04 AC 14 ms
7,792 KB
testcase_05 AC 13 ms
8,196 KB
testcase_06 AC 14 ms
7,824 KB
testcase_07 AC 14 ms
8,092 KB
testcase_08 AC 13 ms
7,776 KB
testcase_09 AC 13 ms
8,036 KB
testcase_10 AC 13 ms
7,744 KB
testcase_11 AC 13 ms
8,188 KB
testcase_12 AC 13 ms
7,792 KB
testcase_13 AC 14 ms
8,060 KB
testcase_14 AC 14 ms
8,180 KB
testcase_15 AC 13 ms
7,848 KB
testcase_16 AC 14 ms
7,888 KB
testcase_17 AC 52 ms
20,084 KB
testcase_18 AC 132 ms
24,440 KB
testcase_19 AC 49 ms
18,688 KB
testcase_20 AC 128 ms
24,748 KB
testcase_21 AC 42 ms
17,600 KB
testcase_22 AC 111 ms
22,716 KB
testcase_23 AC 57 ms
22,376 KB
testcase_24 AC 96 ms
20,296 KB
testcase_25 AC 46 ms
18,272 KB
testcase_26 AC 116 ms
23,864 KB
testcase_27 AC 67 ms
24,808 KB
testcase_28 AC 174 ms
30,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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