题解列表
C++分离整数的各个位数
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>#include<algor……
C++统计满足条件的4位数个数
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>#include<algor……
蓝桥杯2012以前历届试题-回文数字
摘要:解题思路:12321。这个数本来是从左往右的,将这个数通过取余从右往左拼成新数,一样就是回文数。例:1335321 拼成了 1235331如果 1335331 拼成 1335331注意事项:参考代码:……
蓝桥杯2022年第十三届省赛真题-求和
摘要:解题思路:乘法结合律注意事项:注意ai数组范围;注意大数据用longlong参考代码:#include<iostream>using namespace std;int main(){&n……
莉露C++编写题解 2886: 图像旋转
摘要:解题思路:同C语言注意事项:同C语言参考代码:#include <iostream>using namespace std;const int MAX = 100;int main() {……
莉露C++编写题解 1204: 大小写转换
摘要:解题思路:如C语言注意事项:str[i] != '\0'也可写作i<str.size()参考代码:#include<iostream>#include<cstd……
莉露C++编写题解 2846: 统计数字字符个数
摘要:解题思路:getline原句,for挨个判断,sizeof(s) = strlen(s) + 1,但C++不可用strlen。注意事项:if(s[i]>=48&&s[i]<……