QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#622025#2542. Destructive Gameucup-team3474#WA 3ms7844kbC++20413b2024-10-08 19:31:302024-10-08 19:31:31

Judging History

你现在查看的是最新测评结果

  • [2024-10-08 19:31:31]
  • 评测
  • 测评结果:WA
  • 用时:3ms
  • 内存:7844kb
  • [2024-10-08 19:31:30]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
const int N=1919810;
typedef long long ll;
typedef pair<ll,ll> PII;
ll n,m,k;
ll a[N],b[N];
char s[N];
bool tf[N];

int main(){
    ll ans=0;
    cin>>n;
    for(int i=1;i<=n;i++){
        ll x;
        scanf("%lld%lld",&a[i],&b[i]);
        ll t=a[i]/b[i];
        t%=2;
        ans^=t;
    }
    if(ans) puts("Alice");
    else puts("Bob");
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 7844kb

input:

2
10 3
7 4

output:

Bob

result:

ok "Bob"

Test #2:

score: 0
Accepted
time: 1ms
memory: 7700kb

input:

16
903 5
246 38
884 12
752 10
200 17
483 6
828 27
473 21
983 35
953 36
363 35
101 3
34 23
199 8
134 2
932 28

output:

Alice

result:

ok "Alice"

Test #3:

score: 0
Accepted
time: 0ms
memory: 7700kb

input:

16
35 37
852 17
789 37
848 40
351 27
59 32
271 11
395 20
610 3
631 33
543 14
256 28
48 8
277 24
748 38
109 40

output:

Bob

result:

ok "Bob"

Test #4:

score: -100
Wrong Answer
time: 3ms
memory: 7748kb

input:

44093
679258466 979122815
364581740 877180543
305876472 336784414
310018487 420673582
812521202 704056164
60062693 286928662
588815435 723319078
981049166 824574842
897082766 884032874
247411373 200440521
84262500 432750630
189259452 301263664
197298622 387145248
723440748 760643145
238879131 483683...

output:

Alice

result:

wrong answer 1st words differ - expected: 'Bob', found: 'Alice'