結果

問題 No.2451 Redistribute Integers
ユーザー 👑 p-adicp-adic
提出日時 2023-07-06 19:38:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 221 ms / 2,000 ms
コード長 99 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 70,080 KB
最終ジャッジ日時 2023-09-01 20:50:15
合計ジャッジ時間 3,489 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,800 KB
testcase_01 AC 15 ms
7,832 KB
testcase_02 AC 16 ms
7,832 KB
testcase_03 AC 17 ms
7,800 KB
testcase_04 AC 218 ms
64,652 KB
testcase_05 AC 14 ms
7,856 KB
testcase_06 AC 15 ms
7,980 KB
testcase_07 AC 15 ms
7,848 KB
testcase_08 AC 156 ms
70,080 KB
testcase_09 AC 16 ms
7,872 KB
testcase_10 AC 15 ms
7,800 KB
testcase_11 AC 15 ms
7,788 KB
testcase_12 AC 67 ms
25,952 KB
testcase_13 AC 218 ms
62,876 KB
testcase_14 AC 210 ms
64,424 KB
testcase_15 AC 117 ms
35,632 KB
testcase_16 AC 88 ms
32,512 KB
testcase_17 AC 130 ms
47,692 KB
testcase_18 AC 221 ms
63,012 KB
testcase_19 AC 27 ms
12,048 KB
testcase_20 AC 132 ms
51,492 KB
testcase_21 AC 165 ms
62,492 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.py:4: SyntaxWarning: invalid decimal literal
  print(["No","Yes"][all((A[0]-a)%N<1for a in A)])

ソースコード

diff #

I=input
N=int(I())
A=list(map(int,I().split()))
print(["No","Yes"][all((A[0]-a)%N<1for a in A)])
0