20分,求教
查看原帖
20分,求教
785193
Iochi_YC楼主2024/11/3 21:12
#include<bits/stdc++.h>
using namespace std;
int l,r,sum,yc=100000,cy=1;
int main(){
	cin>>l>>r;
	for(int i=l;i<=r;i++){
		if((i%yc)%2==1){
			sum++;
			yc/=10;
		}

	}
	cout<<sum+1;//实在不会了>﹏<
	return 0;
}
2024/11/3 21:12
加载中...