結果

問題 No.1506 Unbalanced Pocky Game
ユーザー seven_three
提出日時 2021-05-14 22:36:36
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 556 bytes
コンパイル時間 772 ms
コンパイル使用メモリ 93,144 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-02 02:32:07
合計ジャッジ時間 3,556 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 36 WA * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <cmath>
#include <stdio.h>
#include <queue>
#include <deque>
#include <cstdio>
#include <set>
#include <map>
#include <bitset>
#include <stack>
#include <cctype>
int a[200020];
using namespace std;
int main() {
	int n;
	cin >> n;
	int co = 0;
	for (int i = 0; i < n; i++) {
		cin >> a[i];
	}
	for (int i = 0; i < n; i++) {
		if (a[i] == 1) {
			co++;
		}
	}
	if ((n - co) % 2 == 1) {
		cout << "Bob" << endl;
	}
	else {
		cout << "Alice" << endl;
	}
}
0