题解列表

筛选

字符串连接

摘要:```cpp #include using namespace std; int main() { string s,t; getline(cin,s); getline(……

字符大法好

摘要:解题思路:用字符串一个一个取出来注意事项:特别注意就是别想复杂了,一般数学取数字问题多多考虑字符串参考代码:#include <iostream>#include <stdio.h>using nam……

一种利用switch_case特性的巧妙解法

摘要:# 一种利用switch_case特性的巧妙解法——减少代码量 ## 传统写法 各种写法很多,这儿提供一种典型的: ```c #include int main() { int ……

2918:成绩排序

摘要:```c #include #include typedef struct student { char name[25]; int score; }student; int ma……

2939: 最匹配的矩阵

摘要:解题思路:注意事项:本题较难参考代码:#include <stdio.h> #include <stdlib.h> #include <math.h> using namespace std; ……