QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#252150 | #7638. Lake | Freeuni1# | WA | 0ms | 3688kb | C++14 | 335b | 2023-11-15 16:00:24 | 2023-11-15 16:00:25 |
Judging History
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'