結果

問題 No.1219 Mancala Combo
ユーザー rlangevinrlangevin
提出日時 2023-02-23 22:54:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 293 bytes
コンパイル時間 694 ms
コンパイル使用メモリ 86,800 KB
実行使用メモリ 106,580 KB
最終ジャッジ日時 2023-09-30 22:22:07
合計ジャッジ時間 4,300 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,236 KB
testcase_01 AC 76 ms
71,180 KB
testcase_02 AC 77 ms
71,068 KB
testcase_03 AC 77 ms
71,304 KB
testcase_04 WA -
testcase_05 AC 77 ms
71,240 KB
testcase_06 WA -
testcase_07 AC 76 ms
71,420 KB
testcase_08 WA -
testcase_09 AC 78 ms
71,308 KB
testcase_10 WA -
testcase_11 AC 79 ms
71,176 KB
testcase_12 WA -
testcase_13 AC 78 ms
71,280 KB
testcase_14 AC 78 ms
71,012 KB
testcase_15 AC 75 ms
71,312 KB
testcase_16 WA -
testcase_17 AC 107 ms
96,364 KB
testcase_18 WA -
testcase_19 AC 102 ms
93,896 KB
testcase_20 WA -
testcase_21 AC 101 ms
91,704 KB
testcase_22 WA -
testcase_23 AC 111 ms
102,448 KB
testcase_24 WA -
testcase_25 AC 103 ms
93,948 KB
testcase_26 WA -
testcase_27 AC 117 ms
105,920 KB
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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