結果
| 問題 | 
                            No.1586 Equal Array
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Narumisakakios
                         | 
                    
| 提出日時 | 2021-07-08 22:49:33 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 318 bytes | 
| コンパイル時間 | 1,578 ms | 
| コンパイル使用メモリ | 167,220 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-07-01 13:00:47 | 
| 合計ジャッジ時間 | 6,265 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | RE * 3 | 
| other | RE * 20 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(){
    ll N;cin>>N;
    vector<int>A;
    ll ans = 0;
    rep(i,N){
        cin>>A[i];
        ans += abs(A[0]-A[i]);
    }
    if(ans%2==0)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}
            
            
            
        
            
Narumisakakios