結果
| 問題 |
No.2813 Cookie
|
| コンテスト | |
| ユーザー |
chro_96
|
| 提出日時 | 2024-07-19 22:02:52 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 384 bytes |
| コンパイル時間 | 1,258 ms |
| コンパイル使用メモリ | 28,288 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-19 22:02:57 |
| 合計ジャッジ時間 | 1,840 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 WA * 25 |
ソースコード
#include <stdio.h>
int main () {
int t = 0;
int n = 0;
int a = 0;
int res = 0;
res = scanf("%d", &t);
while (t > 0) {
int acc = 0;
res = scanf("%d", &n);
while (n > 0) {
res = scanf("%d", &a);
acc ^= (a+1)/2;
n--;
}
if (acc > 0) {
printf("Alice\n");
} else {
printf("Bob\n");
}
t--;
}
return 0;
}
chro_96