QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#585317 | #9256. Quantum Supremacy | ucup-team3474# | WA | 0ms | 3632kb | C++20 | 345b | 2024-09-23 20:18:46 | 2024-09-23 20:18:47 |
Judging History
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;
}
详细
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'