QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#252150#7638. LakeFreeuni1#WA 0ms3688kbC++14335b2023-11-15 16:00:242023-11-15 16:00:25

Judging History

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

  • [2023-11-15 16:00:25]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3688kb
  • [2023-11-15 16:00:24]
  • 提交

answer

#include<bits/stdc++.h>

using namespace std;

int main(){


    int l, r, res=-1;
    cin>>l>>r;

    while(l>0 || r>0){
        res++;
        l--;r--;
        l--;r--;
        l--;r--;
        if(l>0)
            l--;
        else
            r--;
        res++;
    }

    cout<<res<<endl;
    return 0;
}

详细

Test #1:

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

input:

1 1

output:

1

result:

ok single line: '1'

Test #2:

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

input:

1 4

output:

1

result:

ok single line: '1'

Test #3:

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

input:

5 5

output:

3

result:

ok single line: '3'

Test #4:

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

input:

4 4

output:

3

result:

ok single line: '3'

Test #5:

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

input:

3 4

output:

1

result:

ok single line: '1'

Test #6:

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

input:

8 12

output:

7

result:

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