結果
問題 |
No.582 キャンディー・ボックス3
|
ユーザー |
|
提出日時 | 2025-09-08 16:18:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 323 bytes |
コンパイル時間 | 1,604 ms |
コンパイル使用メモリ | 194,360 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-09-08 16:18:45 |
合計ジャッジ時間 | 2,783 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 WA * 5 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int n,t; cin >> n; int val = 0; for(int i=0;i<n;i++) { cin >> t; if(t==1) val^=1; } if(val>0) cout << "A" << '\n'; else cout << "B" << '\n'; return 0; }