結果
| 問題 | No.99 ジャンピング駒 |
| コンテスト | |
| ユーザー |
dnish
|
| 提出日時 | 2017-07-03 22:12:44 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 27 ms / 5,000 ms |
| + 566µs | |
| コード長 | 271 bytes |
| 記録 | |
| コンパイル時間 | 881 ms |
| コンパイル使用メモリ | 179,056 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-10 16:01:17 |
| 合計ジャッジ時間 | 2,335 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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