結果

問題 No.99 ジャンピング駒
ユーザー tadanoningentadanoningen
提出日時 2020-09-18 12:30:58
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 816 ms
コンパイル使用メモリ 63,856 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-04 08:46:33
合計ジャッジ時間 1,603 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
4,376 KB
testcase_01 AC 40 ms
4,376 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0