/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 0ms 284.0 KiB
#2 Wrong Answer 0ms 284.0 KiB

Code

#include<stdio.h>
int main(){
long long int a,b,c,g,h=0,count;

scanf("%lld", &g);

for(int j=1;j<=g;j++){
long long int count=0;
scanf("%lld%lld",&a,&b);
if(a==b){
    printf("0\n");
}
else do{
    a=a*2;
    count++;
}
while(a<=b);
if(a<b){
    h=b-a;
count=count+h;
}



printf("%lld\n", count);
}
}

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:24:06
Judged At
2024-11-11 03:37:11
Judged By
Score
0
Total Time
0ms
Peak Memory
284.0 KiB