結果

問題 No.2451 Redistribute Integers
ユーザー chineristACchineristAC
提出日時 2023-09-01 21:38:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 241 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 159,404 KB
最終ジャッジ日時 2023-09-01 21:38:18
合計ジャッジ時間 5,295 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
74,616 KB
testcase_01 AC 109 ms
74,780 KB
testcase_02 AC 109 ms
74,204 KB
testcase_03 AC 109 ms
74,836 KB
testcase_04 AC 241 ms
159,136 KB
testcase_05 AC 109 ms
74,204 KB
testcase_06 AC 110 ms
74,728 KB
testcase_07 AC 108 ms
74,252 KB
testcase_08 AC 198 ms
156,692 KB
testcase_09 AC 108 ms
74,488 KB
testcase_10 AC 109 ms
74,204 KB
testcase_11 AC 109 ms
74,856 KB
testcase_12 AC 152 ms
100,212 KB
testcase_13 AC 226 ms
156,880 KB
testcase_14 AC 229 ms
159,404 KB
testcase_15 AC 167 ms
117,620 KB
testcase_16 AC 163 ms
111,872 KB
testcase_17 AC 190 ms
141,736 KB
testcase_18 AC 238 ms
156,764 KB
testcase_19 AC 116 ms
82,980 KB
testcase_20 AC 192 ms
149,004 KB
testcase_21 AC 225 ms
156,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random
from itertools import permutations
from collections import deque

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

N = int(input())
A = li()

if all(a%N == A[0]%N for a in A):
    print("Yes")
else:
    print("No")
0