結果
問題 | No.2451 Redistribute Integers |
ユーザー |
|
提出日時 | 2023-09-01 21:38:12 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 191 ms / 2,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 156,300 KB |
最終ジャッジ日時 | 2024-06-11 11:01:15 |
合計ジャッジ時間 | 3,566 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
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")