Time Exceeded
Code
#include <stdio.h>
int main() {
int t,i,j,n,xr=0;
scanf("%d",&t);
for (i=1;i<=t;i++){
scanf("%d",&n);
for(j=1;j<=n;j++){
xr=xr^j;
}
printf("%d\n",xr);
xr=0;
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1009 XOR Love
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2023-12-31 11:35:55
- Judged At
- 2024-11-11 03:46:53
- Judged By
- Score
- 0
- Total Time
- ≥1067ms
- Peak Memory
- ≥424.0 KiB