結果
| 問題 | No.1586 Equal Array |
| コンテスト | |
| ユーザー |
Narumisakakios
|
| 提出日時 | 2021-07-08 22:49:33 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 318 bytes |
| 記録 | |
| コンパイル時間 | 918 ms |
| コンパイル使用メモリ | 179,668 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-22 14:24:42 |
| 合計ジャッジ時間 | 3,990 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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