AC题解
2026-10-12 18:06:24
发布于:浙江
1阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
// 完成判定是否是两位数的函数 调用函数解题
bool check(int x) {
int cnt=0;
while(x){
cnt++;
x/=10;
}
if(cnt==2)return 1;
else return 0;
}
int main() {
int n;
cin>>n;
if(check(n)==1)cout<<"yes";
else cout<<"no";
return 0;
}
这里空空如也








有帮助,赞一个