結果

問題 No.1586 Equal Array
ユーザー raven7959raven7959
提出日時 2021-08-19 16:19:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 66 ms / 1,000 ms
コード長 130 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 82,592 KB
実行使用メモリ 84,420 KB
最終ジャッジ日時 2024-04-20 19:12:01
合計ジャッジ時間 2,855 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,352 KB
testcase_01 AC 36 ms
51,944 KB
testcase_02 AC 37 ms
52,124 KB
testcase_03 AC 36 ms
52,444 KB
testcase_04 AC 59 ms
78,536 KB
testcase_05 AC 58 ms
78,248 KB
testcase_06 AC 62 ms
82,988 KB
testcase_07 AC 66 ms
83,372 KB
testcase_08 AC 62 ms
83,808 KB
testcase_09 AC 63 ms
83,580 KB
testcase_10 AC 63 ms
83,568 KB
testcase_11 AC 38 ms
52,000 KB
testcase_12 AC 37 ms
52,208 KB
testcase_13 AC 62 ms
83,628 KB
testcase_14 AC 63 ms
83,928 KB
testcase_15 AC 62 ms
84,420 KB
testcase_16 AC 63 ms
83,684 KB
testcase_17 AC 37 ms
53,292 KB
testcase_18 AC 63 ms
83,092 KB
testcase_19 AC 62 ms
83,692 KB
testcase_20 AC 37 ms
53,252 KB
testcase_21 AC 38 ms
52,476 KB
testcase_22 AC 37 ms
52,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
num=0
for a in A:
    num=(num+a)%N
if num:
    print("No")
else:
    print("Yes")
0