/ SeriousOJ /

Record Detail

Time Exceeded


  
# Status Time Cost Memory Cost
#1 Accepted 0ms 324.0 KiB
#2 Time Exceeded ≥1085ms ≥392.0 KiB
#3 Wrong Answer 0ms 320.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)
            {
                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 16:00:24
Judged At
2024-12-17 11:35:36
Judged By
Score
10
Total Time
≥1085ms
Peak Memory
≥392.0 KiB