結果

問題 No.99 ジャンピング駒
ユーザー おきょん.おきょん.
提出日時 2022-01-13 18:14:19
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 423 bytes
コンパイル時間 3,998 ms
コンパイル使用メモリ 258,932 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-10 22:36:19
合計ジャッジ時間 4,965 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
4,376 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

//No.99 ジャンピング駒
#pragma GCC optimize("O3")
#pragma GCC target("avx")
#include <bits/stdc++.h>
#define rep(i ,n) for(int i=0;i<(int)(n);++i)

using namespace std;

signed main(){
    int n; cin >>n;
    vector<long long> x(n);
    rep( i , n ) cin >> x[i];
    int odd , even; 
    odd = even = 0;
    rep( i , n ){
        if( n & 1) ++odd;
        else ++even;
    }
    cout << min( odd , even ) << endl;
}
0