結果
| 問題 | 
                            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 | 
ソースコード
#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;
}
            
            
            
        
            
hogeover30