Wrong Answer
Code
#include <stdio.h>
int main(){
int x = 0, t;
scanf("%d", &t);
while(x < t){
int n;
scanf("%d", &n);
int ara[n];
for (int i = 0; i < n; i++){
ara[i] = i+1;
}
if(n % 2 == 1){
printf("1");
}
else{
printf("%d\n", n / 2 );
}
x++;
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1052 Yet Another Array Partition
- Contest
- Brain Booster #3
- Language
- C11 (GCC 13.2.0)
- Submit At
- 2024-05-06 15:44:35
- Judged At
- 2024-11-11 03:33:56
- Judged By
- Score
- 0
- Total Time
- 1ms
- Peak Memory
- 332.0 KiB