60分大佬求助
查看原帖
60分大佬求助
1051567
QCX2013楼主2024/8/11 21:27
#include<bits/stdc++.h>
using namespace std;
int main(){
	int x,y,B,t;
	cin>>x>>y;
	B=1;
	B=2;
	if((y-x)%2==0){
		t = (y-x)/2;
		cout<<t<<' ';
	}
	else if((y-x)%2==1){{
			t=(y-x)/2;
			cout<<t+1<<' ';
		}
	}
	return 0;
}
2024/8/11 21:27
加载中...