結果
| 問題 |
No.2538 2進元ゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-10 22:23:24 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 646 bytes |
| コンパイル時間 | 1,801 ms |
| コンパイル使用メモリ | 191,200 KB |
| 最終ジャッジ日時 | 2025-02-17 21:00:54 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 WA * 15 |
ソースコード
#include <bits/stdc++.h>
#define int long long
using namespace std;
using ll = long long;
void solve();
template<typename ...Args>
void println(Args... args) {
apply([](auto &&... args) { ((cout << args << ' '), ...); }, tuple(args...));
cout << '\n';
}
int32_t main() {
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
int t = 1;
// cin >> t;
for (int tc = 0; tc < t; ++tc) {
solve();
}
return 0;
}
void solve() {
int n;
cin >> n;
int sum = 0;
for (int i = 0; i < n; ++i) {
int x;
cin >> x;
sum += x;
}
cout << (sum % 2 == 0 ? 2 : 1) << '\n';
}