Wrong Answer
Code
#include <stdio.h>
int main()
{
int t;
scanf("%d", &t);
while (t--)
{
int a;
scanf("%d", &a);
if (a%2 == 0)
{
printf("%d\n", a/2);
}
else
{
int b = (a-3)/2;
printf("%d\n", b+1);
}
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1052 Yet Another Array Partition
- Contest
- Brain Booster #3
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2024-05-06 16:33:53
- Judged At
- 2024-11-11 03:33:01
- Judged By
- Score
- 10
- Total Time
- 0ms
- Peak Memory
- 364.0 KiB