Time Exceeded
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 = n-3;
}
else
{
n = 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:48:09
- Judged At
- 2024-12-17 11:36:01
- Judged By
- Score
- 10
- Total Time
- ≥1093ms
- Peak Memory
- ≥324.0 KiB