不会的跟我来。
2024-04-17 21:26:50
发布于:广东
3阅读
0回复
0点赞
#include <iostream>
using namespace std;
int main() {
int n, x, count = 1;
cin >> n >> x;
while (n >= 10) {
n /= 10;
count++;
}
if (x == count) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
全部评论 2
#include<bits/stdc++.h> using namespace std; int main(){ string x; cin>>x; int n; cin>>n; if(n==x.size()){ cout<<"Yes"; } else cout<<"No"; return 0; }2026-01-04 来自 浙江
0#include<bits/stdc++.h>
using namespace std;
int main(){
string x;
cin>>x;
int n;
cin>>n;
if(n==x.size()){
cout<<"Yes";
}
else cout<<"No";
return 0;
}2026-01-04 来自 浙江
0










有帮助,赞一个