結果
| 問題 |
No.99 ジャンピング駒
|
| コンテスト | |
| ユーザー |
ant2357
|
| 提出日時 | 2016-04-08 15:21:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 46 ms / 5,000 ms |
| コード長 | 213 bytes |
| コンパイル時間 | 581 ms |
| コンパイル使用メモリ | 62,976 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-10 23:55:04 |
| 合計ジャッジ時間 | 1,389 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
#include <iostream>
using namespace std;
int main() {
int ans = 0;
int n;
cin >> n;
for (int i = 0; i < n; i++) {
int x;
cin >> x;
if (x % 2 == 0) ans++;
else ans--;
}
cout << abs(ans) << endl;
}
ant2357