Wrong Answer
Code
#include<stdio.h>
#include<string.h>
int main()
{
int t; scanf("%d",&t);
while(t--)
{
int a,b,ope=0;
scanf("%d %d",&a,&b);
while(a*2<=b)
{
a=a*2;
ope++;
}
while(a+1<=b)
{
a=a+1;
ope++;
}
printf("%d\n",ope);
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1044 Add or multiple
- Contest
- TLE_Headquarters - round #1
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2024-03-27 18:18:42
- Judged At
- 2024-11-11 03:37:12
- Judged By
- Score
- 20
- Total Time
- 1ms
- Peak Memory
- 324.0 KiB