QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#585311 | #9256. Quantum Supremacy | ucup-team3474# | WA | 0ms | 3684kb | C++20 | 351b | 2024-09-23 20:17:24 | 2024-09-23 20:17:24 |
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;
ll val=(b+a-1)/a;
ll tot=1,len=0;
while(tot<=val){
tot<<=1;
len++;
}
cout<<len<<endl;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3600kb
input:
1024 1 1
output:
1
result:
ok answer is '1'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3492kb
input:
1024 1 2
output:
2
result:
ok answer is '2'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
1 1 1
output:
1
result:
ok answer is '1'
Test #4:
score: -100
Wrong Answer
time: 0ms
memory: 3588kb
input:
1 1 2
output:
2
result:
wrong answer expected '-1', found '2'