結果

問題 No.2451 Redistribute Integers
ユーザー fiblonariafiblonaria
提出日時 2023-09-05 10:01:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 224 ms / 2,000 ms
コード長 162 bytes
コンパイル時間 1,823 ms
コンパイル使用メモリ 86,440 KB
実行使用メモリ 173,252 KB
最終ジャッジ日時 2023-09-05 10:01:42
合計ジャッジ時間 6,190 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,272 KB
testcase_01 AC 74 ms
71,412 KB
testcase_02 AC 75 ms
71,020 KB
testcase_03 AC 75 ms
71,216 KB
testcase_04 AC 224 ms
153,572 KB
testcase_05 AC 74 ms
71,236 KB
testcase_06 AC 71 ms
71,300 KB
testcase_07 AC 73 ms
71,148 KB
testcase_08 AC 167 ms
149,032 KB
testcase_09 AC 74 ms
71,140 KB
testcase_10 AC 74 ms
70,920 KB
testcase_11 AC 72 ms
70,916 KB
testcase_12 AC 111 ms
101,456 KB
testcase_13 AC 209 ms
173,252 KB
testcase_14 AC 207 ms
154,108 KB
testcase_15 AC 139 ms
110,732 KB
testcase_16 AC 135 ms
104,848 KB
testcase_17 AC 157 ms
129,252 KB
testcase_18 AC 185 ms
141,456 KB
testcase_19 AC 83 ms
79,896 KB
testcase_20 AC 160 ms
136,568 KB
testcase_21 AC 183 ms
163,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
	N = int(input())
	S = list(map(int, input().split()))
	for i in range(1, N):
		if S[i] % N != S[0] % N:
			return 'No'
	return 'Yes'
print(solve())
0