結果
問題 | No.1586 Equal Array |
ユーザー |
![]() |
提出日時 | 2021-07-08 23:03:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 352 bytes |
コンパイル時間 | 1,554 ms |
コンパイル使用メモリ | 167,556 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-01 13:07:57 |
合計ジャッジ時間 | 2,980 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 5 |
ソースコード
#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(N); ll ans = 0; rep(i,N){ cin>>A[i]; ans += (A[0]-A[i])%1000000000; } if(ans%2==0)cout<<"Yes"<<endl; else cout<<"No"<<endl; //cout<<ans<<endl; }