General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
126499607 Practice:
HollwoQ_Pelw
1511G - 11 C++17 (GCC 9-64) Accepted 4212 ms 5024 KB 2021-08-20 07:20:08 2021-08-20 07:20:08
→ Source
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx,avx2,fma")

#include <bits/stdc++.h>

int main(){
	int n,m,q;
	scanf("%d %d",&n,&m);
	int c[n],l,r,L,R,x,i=0;
	for(;i<n&&scanf("%d",c+i);i++);
	std::sort(c,c+n);
	for(scanf("%d",&q);q--;putchar("BA"[x>0])){
		scanf("%d %d",&L,&R),x=0;
		l=std::lower_bound(c,c+n,L)-c;
		r=std::upper_bound(c,c+n,R)-c;
		for(;l<r;x^=c[l++]-L);
	}
}
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details