結果

問題 No.2451 Redistribute Integers
ユーザー Carpenters-CatCarpenters-Cat
提出日時 2023-09-01 21:39:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 291 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 213 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 70,076 KB
最終ジャッジ日時 2023-09-01 21:39:57
合計ジャッジ時間 4,004 ms
ジャッジサーバーID
(参考情報)
judge16 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,796 KB
testcase_01 AC 15 ms
7,904 KB
testcase_02 AC 15 ms
7,856 KB
testcase_03 AC 15 ms
7,852 KB
testcase_04 AC 277 ms
64,844 KB
testcase_05 AC 15 ms
7,952 KB
testcase_06 AC 16 ms
7,792 KB
testcase_07 AC 15 ms
7,780 KB
testcase_08 AC 194 ms
70,076 KB
testcase_09 AC 15 ms
7,912 KB
testcase_10 AC 15 ms
7,848 KB
testcase_11 AC 15 ms
7,936 KB
testcase_12 AC 79 ms
26,024 KB
testcase_13 AC 291 ms
62,808 KB
testcase_14 AC 267 ms
64,552 KB
testcase_15 AC 152 ms
35,740 KB
testcase_16 AC 102 ms
32,588 KB
testcase_17 AC 157 ms
47,756 KB
testcase_18 AC 288 ms
65,172 KB
testcase_19 AC 29 ms
12,032 KB
testcase_20 AC 159 ms
51,480 KB
testcase_21 AC 200 ms
62,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
ok = True
for a in A :
	ok = ok and (a % N == A[0] % N)
print("Yes" if ok else "No")
0