QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#585317#9256. Quantum Supremacyucup-team3474#WA 0ms3632kbC++20345b2024-09-23 20:18:462024-09-23 20:18:47

Judging History

你现在查看的是最新测评结果

  • [2024-09-23 20:18:47]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3632kb
  • [2024-09-23 20:18:46]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define int long long
typedef long long ll;
const int N=2e6+10,mod=998244353;
const ll inf=1e18;
const int M=1e8+10;

ll n,a,b;


signed main(){
    cin>>n>>a>>b;
    __int128 nn=n,aa=a,bb=b;
    ll len=0;
    while(a<=b){
        a*=2;
        len++;
    }
    cout<<len<<endl;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3560kb

input:

1024 1 1

output:

1

result:

ok answer is '1'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3632kb

input:

1024 1 2

output:

2

result:

ok answer is '2'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3548kb

input:

1 1 1

output:

1

result:

ok answer is '1'

Test #4:

score: -100
Wrong Answer
time: 0ms
memory: 3632kb

input:

1 1 2

output:

2

result:

wrong answer expected '-1', found '2'