結果
問題 |
No.582 キャンディー・ボックス3
|
ユーザー |
|
提出日時 | 2017-10-27 23:05:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 473 bytes |
コンパイル時間 | 1,686 ms |
コンパイル使用メモリ | 165,440 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-21 22:46:51 |
合計ジャッジ時間 | 2,347 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 8 |
ソースコード
#include <bits/stdc++.h> #define REP(i,a,b) for(int i=(a);i<(b);i++) #define RREP(i,a,b) for(int i=(a);i>=(b);i--) typedef long long ll; typedef long double ld; using namespace std; const int INF=1e9, MOD=1e9+7, around[]={0,1,1,-1,-1,0,-1,1,0,0}; const ld PI=abs(acos(-1)); int n,pos; ll a; int main(){ cin >> n; REP(i,0,n){ cin >> a; if(!i) pos=a; if(a<3) pos^=a; else{ cout << 'B' << endl; return 0; } } cout << (pos?'A':'B') << endl; return 0; }