結果

問題 No.99 ジャンピング駒
ユーザー トミー
提出日時 2024-08-27 00:12:33
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 1,629 ms
コンパイル使用メモリ 168,288 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-08-27 00:12:36
合計ジャッジ時間 3,245 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef int64_t ll;
typedef vector<int64_t> vll;

int main() {
    ll n;
    cin>>n;
    vll x(n);
    for(auto &i:x){
        cin>>i;
    }
    ll result=0;
    for(auto &i:x){
        if(i%2==0){
            result++;
        }else{
            result--;
        }
    }
    cout<<result<<endl;
}
0