AC code(A.304)题解
2026-07-27 10:45:51
发布于:上海
10阅读
0回复
0点赞
AC代码之C++函数版:
代码如下:
#include <bits/stdc++.h>
using namespace std;
bool d(int a)//形参
{
cin>>a;
if(a/10>=1&&a/10<=9)
{
return true;
}
else return false;
}
int main()
{
int a;
cin>>a;
cout << d(a);//实参
return 0;
}
- 能AC
全部评论 1
good
2026-07-27 来自 上海
1



有帮助,赞一个