/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 284.0 KiB
#2 Wrong Answer 1ms 328.0 KiB
#3 Wrong Answer 1ms 380.0 KiB

Code

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

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:41:54
Judged At
2024-12-17 11:36:19
Judged By
Score
10
Total Time
1ms
Peak Memory
380.0 KiB