結果
問題 | No.99 ジャンピング駒 |
ユーザー |
![]() |
提出日時 | 2023-11-23 13:13:16 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 50 ms / 5,000 ms |
コード長 | 365 bytes |
コンパイル時間 | 1,919 ms |
コンパイル使用メモリ | 194,132 KB |
最終ジャッジ日時 | 2025-02-17 23:15:09 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define rep(i, n) for (int i = 0; i < (int)(n); ++i)int main() {// Inputint N;cin >> N;vector<int> X(N);rep(i, N) cin >> X[i];// Countint odd = 0, even = 0;rep(i, N) {if (X[i] & 1) ++odd;else ++even;}// Outputcout << abs(odd - even) << endl;}