/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 0ms 316.0 KiB
#2 Wrong Answer 0ms 324.0 KiB
#3 Accepted 0ms 364.0 KiB
#4 Wrong Answer 0ms 324.0 KiB

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