結果

問題 No.2451 Redistribute Integers
ユーザー Yugimn
提出日時 2023-09-08 07:35:44
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 200 ms / 2,000 ms
コード長 282 bytes
コンパイル時間 2,656 ms
コンパイル使用メモリ 242,664 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-11 11:08:08
合計ジャッジ時間 4,565 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

//mosyasu

#include <bits/stdc++.h>

using namespace std;

int main(){

    int N, A, B;
    cin >> N >> A;
    for (int i=1; i<N; i++){
    	cin >> B;
    	if ((B-A) % N){
    		cout << "No" << endl;
    		return 0;
    	}
    }
    
    cout << "Yes" << endl;
    
    return 0;
}
0