結果
問題 |
No.99 ジャンピング駒
|
ユーザー |
|
提出日時 | 2020-09-18 12:30:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 320 bytes |
コンパイル時間 | 766 ms |
コンパイル使用メモリ | 64,432 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 07:55:35 |
合計ジャッジ時間 | 1,497 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 4 |
ソースコード
#include<iostream> #define MAX_N 100050 using namespace std; int N; int x[MAX_N]; int main(){ cin >> N; int odd = 0,even = 0; for(int i=0;i < N;i++){ cin >> x[i]; if(x[i] % 2 == 0) even++; else odd++; } int ans = even % 2 + odd % 2; cout << ans << endl; return 0; }