/ SeriousOJ /

Record Detail

Wrong Answer


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

Code

#include<stdio.h>
int main()
{
    int n,i;
    scanf("%d",&n);
    if (n>=2 && n <=100)
    {
        for (i = 0; n !=0; i++)
        {
            if (n % 3 == 0)
            {
                n -= 3;
            }
            else
            {
                n -= 2;
            }
        }
        printf("%d\n",i);
    }
}

Information

Submit By
Type
Submission
Problem
P1106 too easy or three easy
Contest
Brain Booster #6
Language
C11 (GCC 13.2.0)
Submit At
2024-10-03 15:58:57
Judged At
2024-12-17 11:35:37
Judged By
Score
40
Total Time
0ms
Peak Memory
324.0 KiB