Submission #70095869


Source Code Expand

#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define endl "\n"


signed main()
{
    ios::sync_with_stdio(0),cin.tie(0);

    int Tc=0,Tests=1;
    cin>>Tests;
    while(Tc++<Tests)
    {

        ll n,x,ans=0,mx=0;
        cin>>n;
        while(n--)cin>>x,ans^=x,mx|=x;
        ans^=mx;
        cout<<(ans?"Alice":"Bob")<<endl;




    }///End TotalTests
}   ///End Main

Submission Info

Submission Time
Task A - Bitwise OR Game
User Dark_543
Language C++ 20 (gcc 12.2)
Score 500
Code Size 422 Byte
Status AC
Exec Time 17 ms
Memory 3612 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 500 / 500
Status
AC × 1
AC × 23
Set Name Test Cases
Sample 00_sample_00.txt
All 00_sample_00.txt, 01_handmade_00.txt, 01_handmade_01.txt, 01_handmade_02.txt, 01_handmade_03.txt, 01_handmade_04.txt, 01_handmade_05.txt, 01_handmade_06.txt, 01_handmade_07.txt, 01_handmade_08.txt, 01_handmade_09.txt, 02_Bob_00.txt, 02_Bob_01.txt, 02_Bob_02.txt, 02_Bob_03.txt, 02_Bob_04.txt, 02_Bob_05.txt, 02_Bob_06.txt, 02_Bob_07.txt, 02_Bob_08.txt, 03_Alice_00.txt, 03_Alice_01.txt, 03_Alice_02.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 1 ms 3412 KiB
01_handmade_00.txt AC 13 ms 3612 KiB
01_handmade_01.txt AC 16 ms 3400 KiB
01_handmade_02.txt AC 10 ms 3476 KiB
01_handmade_03.txt AC 14 ms 3332 KiB
01_handmade_04.txt AC 17 ms 3424 KiB
01_handmade_05.txt AC 15 ms 3424 KiB
01_handmade_06.txt AC 13 ms 3532 KiB
01_handmade_07.txt AC 11 ms 3460 KiB
01_handmade_08.txt AC 11 ms 3456 KiB
01_handmade_09.txt AC 11 ms 3464 KiB
02_Bob_00.txt AC 11 ms 3484 KiB
02_Bob_01.txt AC 12 ms 3480 KiB
02_Bob_02.txt AC 12 ms 3468 KiB
02_Bob_03.txt AC 12 ms 3532 KiB
02_Bob_04.txt AC 11 ms 3464 KiB
02_Bob_05.txt AC 11 ms 3456 KiB
02_Bob_06.txt AC 11 ms 3528 KiB
02_Bob_07.txt AC 10 ms 3436 KiB
02_Bob_08.txt AC 15 ms 3448 KiB
03_Alice_00.txt AC 11 ms 3468 KiB
03_Alice_01.txt AC 11 ms 3480 KiB
03_Alice_02.txt AC 11 ms 3608 KiB