UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#214793#2835. 机器故障探测wanghanyu393303ms1292kbC++11332b2024-11-21 20:59:592024-11-22 09:35:24

answer

#include<iostream>
#include<cstring>
#include<math.h>
#include<algorithm>
using namespace std;

void solve(){
    int m, n;
    cin >> n >> m;
    if(m == n) cout << 0;
    else if(m == 1) cout << ceil(log2(n));
}

int main(){
    int t = 1;
    //cin >> t;
    while(t--){
        solve();
    }
    return 0;
}

详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 1156kb

input:

6 2

output:


result:

wrong answer 1st lines differ - expected: '5', found: ''

Test #2:

score: 0
Wrong Answer
time: 0ms
memory: 1152kb

input:

7 4

output:


result:

wrong answer 1st lines differ - expected: '6', found: ''

Test #3:

score: 0
Wrong Answer
time: 0ms
memory: 1156kb

input:

8 2

output:


result:

wrong answer 1st lines differ - expected: '6', found: ''

Test #4:

score: 0
Wrong Answer
time: 0ms
memory: 1152kb

input:

50 5

output:


result:

wrong answer 1st lines differ - expected: '24', found: ''

Test #5:

score: 0
Wrong Answer
time: 0ms
memory: 1156kb

input:

49 3

output:


result:

wrong answer 1st lines differ - expected: '16', found: ''

Test #6:

score: 10
Accepted
time: 1ms
memory: 1200kb

input:

45 45

output:

0

result:

ok single line: '0'

Test #7:

score: 10
Accepted
time: 1ms
memory: 1292kb

input:

44 1

output:

6

result:

ok single line: '6'

Test #8:

score: 10
Accepted
time: 1ms
memory: 1292kb

input:

498 1

output:

9

result:

ok single line: '9'

Test #9:

score: 0
Wrong Answer
time: 0ms
memory: 1156kb

input:

300 10

output:


result:

wrong answer 1st lines differ - expected: '66', found: ''

Test #10:

score: 0
Wrong Answer
time: 0ms
memory: 1152kb

input:

500 23

output:


result:

wrong answer 1st lines differ - expected: '143', found: ''