結果
| 問題 |
No.99 ジャンピング駒
|
| コンテスト | |
| ユーザー |
dnish
|
| 提出日時 | 2017-07-03 22:12:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 5,000 ms |
| コード長 | 271 bytes |
| コンパイル時間 | 1,628 ms |
| コンパイル使用メモリ | 165,796 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-05 12:44:53 |
| 合計ジャッジ時間 | 2,113 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
#include <bits/stdc++.h>
#define REP(i,n,N) for(int i=(n);i<(int) N;i++)
#define p(s) cout<<(s)<<endl
using namespace std;
int main(){
int N;
cin>>N;
int even=0,odd=0;
REP(i,0,N){
int a;
cin>>a;
if(a%2) odd++;
else even++;
}
p(abs(odd-even));
return 0;
}
dnish