結果

問題 No.99 ジャンピング駒
ユーザー hogeover30
提出日時 2015-01-28 22:24:01
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 181 bytes
コンパイル時間 591 ms
コンパイル使用メモリ 54,924 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 03:41:18
合計ジャッジ時間 1,139 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main()
{
    int n; cin>>n;
    int a[2]={};
    while (n--) {
        int t; cin>>t; a[t%2]++;
    }
    cout<<abs(a[0]-a[1])<<endl;
}
0