結果

問題 No.1219 Mancala Combo
ユーザー H3PO4H3PO4
提出日時 2020-09-04 22:00:37
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 277 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 82,848 KB
実行使用メモリ 76,132 KB
最終ジャッジ日時 2024-05-04 22:18:02
合計ジャッジ時間 4,837 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
61,152 KB
testcase_01 AC 34 ms
52,264 KB
testcase_02 AC 34 ms
52,556 KB
testcase_03 AC 36 ms
52,372 KB
testcase_04 AC 60 ms
75,972 KB
testcase_05 AC 57 ms
76,012 KB
testcase_06 AC 52 ms
67,872 KB
testcase_07 AC 56 ms
76,132 KB
testcase_08 AC 53 ms
75,732 KB
testcase_09 AC 38 ms
52,396 KB
testcase_10 AC 36 ms
53,228 KB
testcase_11 AC 50 ms
73,808 KB
testcase_12 AC 43 ms
61,448 KB
testcase_13 AC 46 ms
68,072 KB
testcase_14 AC 35 ms
53,228 KB
testcase_15 AC 35 ms
53,360 KB
testcase_16 AC 34 ms
53,144 KB
testcase_17 TLE -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))

while A != [0] * N:
    for i in range(N):
        if A[i] == i + 1:
            A[i] = 0
            for j in range(i):
                A[j] += 1
            break
    else:
        print('No')
        exit()
print('Yes')
0