結果
問題 | No.582 キャンディー・ボックス3 |
ユーザー |
![]() |
提出日時 | 2017-10-27 22:43:29 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,400 bytes |
コンパイル時間 | 801 ms |
コンパイル使用メモリ | 84,848 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-21 22:00:26 |
合計ジャッジ時間 | 1,294 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 12 WA * 5 |
ソースコード
#include<algorithm>#include<iostream>#include<cstdlib>#include<cstring>#include<climits>#include<iomanip>#include<complex>#include<cstdio>#include<vector>#include<queue>#include<stack>#include<cmath>#include<list>#include<map>#include<set>using namespace std;typedef vector<int> VI;typedef vector<VI> VVI;typedef vector<string> VS;typedef stack<int> SI;typedef queue<int> QI;typedef list<int> LI;typedef pair<int,int> PII;typedef long long LL;#define d(x) cout<<#x<<" = "<<(x)<<endl;#define ALL(a) (a).begin(),(a).end()#define RALL(a) (a).rbegin(), (a).rend()#define PB push_back#define MP make_pair#define EMP empty()#define SZ(a) int((a).size())#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)#define REACH(i,c) for(typeof((c).rbegin()) i=(c).rbegin(); i!=(c).rend(); ++i)#define EXIST(s,e) ((s).find(e)!=(s).end())#define SORT(c,n) sort(c,c+n)#define VSORT(c) sort((c).begin(),(c).end())#define FOR(i,a,b) for(int i=(a);i<(b);++i)#define REP(i,n) FOR(i,0,n)#define DFOR(i,b,a) for(int i=(b)-1;i>=(a);--i)#define DREP(i,n) DFOR(i,n,0)#define INF 1000000000#define PI acos(-1.0)////////////////////////////////////////////////int main(){int n,s;bool c[155];cin>>n;REP(i,n){cin>>s;if(s%2==1)c[i]=true;else c[i]=false;}s=0;REP(i,n)s+=c[i];if(s==n)cout<<"A"<<endl;else cout<<"B"<<endl;return 0;}