結果
問題 |
No.582 キャンディー・ボックス3
|
ユーザー |
![]() |
提出日時 | 2017-10-27 22:26:16 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 810 bytes |
コンパイル時間 | 719 ms |
コンパイル使用メモリ | 93,644 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 21:37:38 |
合計ジャッジ時間 | 1,437 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 12 WA * 5 |
ソースコード
#include <cmath> #include <vector> #include <list> #include <map> #include <set> #include <functional> #include <queue> #include <iostream> #include <string.h> #include <iomanip> #include <algorithm> #include <functional> #include <cstdint> #include <climits> #include <unordered_set> #include <sstream> #include <stack> using namespace std; typedef long long int ll; typedef pair<ll,ll> pii; typedef tuple<ll,ll,ll> t3; using namespace std; int main() { int n; cin >> n; vector<ll> vs(n); bool two = false; for(int i = 0;i < n;i++) { cin >> vs[i]; two |= (vs[i] >= 2); } if(two) { cout << "B" << endl; return 0; } if(n % 2 == 0) { cout << "B" << endl; return 0; } cout << "A" << endl; return 0; }