結果
| 問題 |
No.99 ジャンピング駒
|
| コンテスト | |
| ユーザー |
srup٩(๑`н´๑)۶
|
| 提出日時 | 2016-09-24 20:46:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 5,000 ms |
| コード長 | 298 bytes |
| コンパイル時間 | 602 ms |
| コンパイル使用メモリ | 58,028 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-18 10:52:03 |
| 合計ジャッジ時間 | 1,467 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(n);i++)
int main(void){
int n; cin >> n;
int ans = 0;
rep(i, n){
int x; cin >> x;
if(x % 2 == 0) ans++;
else ans--;
}
printf("%d\n", abs(ans));
return 0;
}
srup٩(๑`н´๑)۶