QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#588832#7638. Lakeblhxzjr#WA 0ms3724kbC++23310b2024-09-25 14:47:542024-09-25 14:47:55

Judging History

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

  • [2024-09-25 14:47:55]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3724kb
  • [2024-09-25 14:47:54]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define int long long
int n,m,k,_;

void solve(){
    cin>>n>>m;
	if(m/3<n/3){
		cout << 2*((n-m/3*3+3)/4+m/3)-1;
	}
	else cout << 2*((m-n/3*3+3)/4+n/3)-1;
}
signed main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	_=1;
	while(_--){
		solve();
	}
}

详细

Test #1:

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

input:

1 1

output:

1

result:

ok single line: '1'

Test #2:

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

input:

1 4

output:

1

result:

ok single line: '1'

Test #3:

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

input:

5 5

output:

3

result:

ok single line: '3'

Test #4:

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

input:

4 4

output:

3

result:

ok single line: '3'

Test #5:

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

input:

3 4

output:

3

result:

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