60分,99me
查看原帖
60分,99me
885777
_cheems_ckr_楼主2024/8/30 17:32
#include<bits/stdc++.h>
using namespace std;
long long x,y;
int main(){
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	cin>>x>>y;
	y-=x;
	int t=0;
	while(y>=2){
		y-=2;
		t++;
	}
	while(y>0){
		y--;
		t++;
	}
	cout<<t;
	return 0;
}

提交记录

2024/8/30 17:32
加载中...