結果
問題 | No.2451 Redistribute Integers |
ユーザー |
![]() |
提出日時 | 2023-09-02 08:19:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 514 ms / 2,000 ms |
コード長 | 224 bytes |
コンパイル時間 | 113 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 67,228 KB |
最終ジャッジ日時 | 2024-06-11 11:06:36 |
合計ジャッジ時間 | 5,298 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
a=int(input()) b = list(map(int, input().split())) b=sorted(b) for i in range(len(b)-1): if (b[i+1]-b[i]) %a ==0: c=True else: c=False break if c==True: print("Yes") else: print("No")