题解列表

筛选

2002: 计算数字个数

摘要:#include<bits/stdc++.h> using namespace std; int main(){     string s;     getline(cin,s);   ……

1749: 字符排序

摘要:#include<bits/stdc++.h> using namespace std; int main(){     int n;     cin >> n;     getchar……

2004: 统计成绩

摘要:#include<bits/stdc++.h> using namespace std; int main(){     double sum(0);     int x,fail(0);……

1434: 蓝桥杯历届试题-回文数字

摘要:从 10000 直接循环到 999999,先判断各位数字和是不是与所给数相等,不相等直接判断下一个数,如果相等用 equal 函数判断是否是回文数。#include <bits/stdc++.h> ……

不容易系列

摘要:```c #include int hanshu(int k);//函数声明 int hanshu (int k)//函数定义 { int n=0,i;//n 为第K站的绵羊的数量 ……

[编程入门]水仙花数判断

摘要:解题思路:思考百位、十位、个位怎么表示注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,s,m=100; while(m<1000) { a=m/1……

自定义函数之字符串连接

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void my_strcat(char *pa,char *pb,int len)    //定义我……

C++代码确定插入数字的索引

摘要:解题思路:确定插入数字的索引然后分段输出即可如何确定插入数字的索引:遍历数组中已排序好的数字如果插入的数字大于当前遍历的数字,插入数字放置到当前遍历的数字的后一位否则遍历终止注意事项:暂时不明参考代码……

1204: 大小写转换

摘要:#include<bits/stdc++.h> using namespace std; int main(){     string s;     while(getline(cin,s……