/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 324.0 KiB
#2 Wrong Answer 1ms 504.0 KiB
#3 Wrong Answer 2ms 324.0 KiB

Code

#include <iostream>
using namespace std;
int main()
{
    int t;
	cin>>t;
	for(int i=1;i<=t;i++)
	{
		int A,B;
		cin>>A>>B;  //A<=B
		int count =0;
		while (A<B)
		{
			A=A*2;
			count++;
		}
		cout << count << endl;
    
	}
}

Information

Submit By
Type
Submission
Problem
P1044 Add or multiple
Contest
TLE_Headquarters - round #1
Language
C++17 (G++ 13.2.0)
Submit At
2024-03-27 17:50:51
Judged At
2024-11-11 03:37:23
Judged By
Score
20
Total Time
2ms
Peak Memory
504.0 KiB