結果
問題 |
No.99 ジャンピング駒
|
ユーザー |
![]() |
提出日時 | 2024-07-22 00:34:40 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 451 bytes |
コンパイル時間 | 2,892 ms |
コンパイル使用メモリ | 242,788 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-22 00:34:45 |
合計ジャッジ時間 | 4,177 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 4 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #define _GLIBCXX_DEBUG #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { int n; cin >> n; int odd = 0, even = 0; rep(_, n) { int a; cin >> a; (a % 2 == 0 ? even : odd)++; } cout << (odd % 2 != even % 2) << endl; return 0; }