QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#585311#9256. Quantum Supremacyucup-team3474#WA 0ms3684kbC++20351b2024-09-23 20:17:242024-09-23 20:17:24

Judging History

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

  • [2024-09-23 20:17:24]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3684kb
  • [2024-09-23 20:17:24]
  • 提交

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;
}

Details

Tip: Click on the bar to expand more detailed information

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'