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 -=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