結果
問題 |
No.1586 Equal Array
|
ユーザー |
|
提出日時 | 2021-08-25 01:48:48 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 276 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 84,480 KB |
最終ジャッジ日時 | 2024-11-15 16:36:54 |
合計ジャッジ時間 | 3,599 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 20 |
ソースコード
#!/usr/bin/env python3 import sys def main(): N = int(input()) A = list(map(int, input().split())) tot = 0 for aa in A[1:]: tot += (aa - A[0]) % N tot %= N print("YES" if tot == 0 else "NO") if __name__ == '__main__': main()