結果

問題 No.2451 Redistribute Integers
ユーザー irohasu19_irohasu19_
提出日時 2023-09-01 22:02:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 215 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 174,220 KB
最終ジャッジ日時 2023-09-01 22:03:04
合計ジャッジ時間 4,660 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,532 KB
testcase_01 AC 67 ms
71,248 KB
testcase_02 AC 69 ms
71,312 KB
testcase_03 AC 67 ms
71,100 KB
testcase_04 AC 215 ms
153,852 KB
testcase_05 AC 68 ms
71,096 KB
testcase_06 AC 68 ms
71,240 KB
testcase_07 AC 68 ms
71,216 KB
testcase_08 AC 157 ms
149,164 KB
testcase_09 AC 67 ms
71,256 KB
testcase_10 AC 66 ms
71,176 KB
testcase_11 AC 69 ms
71,252 KB
testcase_12 AC 106 ms
101,428 KB
testcase_13 AC 187 ms
174,220 KB
testcase_14 AC 194 ms
153,404 KB
testcase_15 AC 129 ms
111,352 KB
testcase_16 AC 124 ms
104,852 KB
testcase_17 AC 147 ms
129,412 KB
testcase_18 AC 177 ms
142,120 KB
testcase_19 AC 77 ms
80,044 KB
testcase_20 AC 151 ms
136,872 KB
testcase_21 AC 167 ms
153,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

n = int(input())

A = list(map(int, input().split()))

rem = A[0] % n
for x in A:
  temp = x % n
  if rem!=temp:
    print("No")
    sys.exit()

print("Yes")
0