結果

問題 No.1219 Mancala Combo
ユーザー NatsubiSoganNatsubiSogan
提出日時 2020-09-26 19:01:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 155 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 10,568 KB
実行使用メモリ 30,928 KB
最終ジャッジ日時 2023-09-12 00:20:54
合計ジャッジ時間 2,927 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,760 KB
testcase_01 AC 15 ms
8,216 KB
testcase_02 AC 15 ms
7,876 KB
testcase_03 AC 15 ms
7,860 KB
testcase_04 AC 15 ms
7,852 KB
testcase_05 AC 15 ms
8,084 KB
testcase_06 AC 15 ms
7,852 KB
testcase_07 AC 15 ms
8,024 KB
testcase_08 AC 15 ms
7,872 KB
testcase_09 AC 15 ms
8,208 KB
testcase_10 AC 15 ms
7,872 KB
testcase_11 AC 15 ms
8,200 KB
testcase_12 AC 15 ms
7,868 KB
testcase_13 AC 15 ms
8,072 KB
testcase_14 AC 15 ms
8,076 KB
testcase_15 AC 15 ms
7,920 KB
testcase_16 AC 15 ms
7,872 KB
testcase_17 AC 55 ms
20,060 KB
testcase_18 AC 116 ms
24,324 KB
testcase_19 AC 51 ms
18,704 KB
testcase_20 AC 118 ms
24,760 KB
testcase_21 AC 46 ms
17,620 KB
testcase_22 AC 104 ms
22,656 KB
testcase_23 AC 63 ms
22,556 KB
testcase_24 AC 92 ms
20,276 KB
testcase_25 AC 49 ms
18,332 KB
testcase_26 AC 114 ms
23,872 KB
testcase_27 AC 69 ms
24,944 KB
testcase_28 AC 155 ms
30,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

i,I,P=int,input,print
n=i(I())
a=list(map(i,I().split()))
c=0
for i in range(1,n+1)[::-1]:
 if (c+a[i-1])%i==0:c+=(c+a[i-1])//i
 else:exit(P("No"))
P("Yes")
0