题解 2304: 蓝桥杯2019年第十届省赛真题-特别数的和

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

暴力模拟!!

摘要:```cpp #include using namespace std; bool check(int k){ int isflag = 0; while(k){ ……

暴力出奇迹

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int  n; int sum; bool check(int n) { ……

思路清晰C语言代码

摘要:解题思路:首先,我们要先先判断出哪些数字中含有 2 ,0 ,1 ,9 ,我们可以设置一个函数fun来判断通过while 循环 ,把每一位数都给模出来,然后和 2 ,0 ,1, 9, 这四个数字进行比较……

纯代码无注释

摘要:```cpp #include #include using namespace std; bool judge(int k) { string str=to_string(k);//数……