0分求助!
查看原帖
0分求助!
1355828
MSJ2013楼主2024/8/26 15:30

只有0分!!!!!

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;

int main(){
	ll x,y;
	cin>>x>>y;
	if((y-x)%2==0){
		cout<<(y-x)/2;
	}
	else{
		cout<<(y-x)/2+1;
	}
	
	
	return 0;
}
2024/8/26 15:30
加载中...