結果

問題 No.99 ジャンピング駒
ユーザー ninoinui
提出日時 2020-02-01 12:25:05
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 45 ms / 5,000 ms
コード長 169 bytes
コンパイル時間 1,490 ms
コンパイル使用メモリ 165,384 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-18 19:51:33
合計ジャッジ時間 2,853 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N, X, o = 0, e = 0;
  cin >> N;
  while (cin >> X) (X % 2) ? o++ : e++;
  cout << abs(o - e) << "\n";
}
0