結果

問題 No.2451 Redistribute Integers
ユーザー hiro1729hiro1729
提出日時 2023-09-01 21:21:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 211 ms / 2,000 ms
コード長 118 bytes
コンパイル時間 383 ms
コンパイル使用メモリ 10,500 KB
実行使用メモリ 70,012 KB
最終ジャッジ日時 2023-09-01 21:21:42
合計ジャッジ時間 3,507 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,868 KB
testcase_01 AC 21 ms
7,804 KB
testcase_02 AC 15 ms
7,824 KB
testcase_03 AC 15 ms
7,860 KB
testcase_04 AC 206 ms
64,784 KB
testcase_05 AC 15 ms
7,808 KB
testcase_06 AC 15 ms
7,868 KB
testcase_07 AC 15 ms
7,864 KB
testcase_08 AC 161 ms
70,012 KB
testcase_09 AC 15 ms
7,832 KB
testcase_10 AC 15 ms
7,792 KB
testcase_11 AC 15 ms
7,796 KB
testcase_12 AC 68 ms
25,996 KB
testcase_13 AC 209 ms
62,924 KB
testcase_14 AC 194 ms
64,488 KB
testcase_15 AC 112 ms
35,660 KB
testcase_16 AC 87 ms
32,456 KB
testcase_17 AC 134 ms
47,620 KB
testcase_18 AC 211 ms
62,808 KB
testcase_19 AC 28 ms
12,076 KB
testcase_20 AC 132 ms
53,196 KB
testcase_21 AC 167 ms
62,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
p = a[0] % n
print("Yes" if all(i % n == p for i in a) else "No")
0