0pts,求调
查看原帖
0pts,求调
661913
liwenxi1145144444楼主2023/12/26 13:24
#include<bits/stdc++.h>
using namespace std;
long long l,r;
int main(){
	cin>>l>>r;
	if(l>r){
		swap(l,r);
	}
	if(r/l>=10){
		cout<<2;
	}else{
		int nr=log10(r);
		if(r>=(long long)(pow(10,nr)*3-1)&&l<=(long long)(pow(10,nr)*3-1)){
			cout<<2;
		}else{
			cout<<1;
		}
	}
	return 0;
}
2023/12/26 13:24
加载中...