题解列表

筛选

编写题解 1670: 拆分位数

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a = 0, b = 0, c = 0; int num = 0; sca……

编写题解 1671: 小九九

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i = 0, j = 0; for(i = 1; i <= 9; i++) ……

用set去重并排序

摘要:解题思路:通过set关联容器,set中每个元素都唯一,且能根据元素的值自动排序。注意事项:参考代码:#include <bits/stdc++.h>  //万能头文件 using namespace ……

单元素插入数组问题

摘要:解题思路: 由于本题元素个数较少,我们不妨对插入后的数组调用sort()函数进行排序操作,从而直接输出该数组(最简单的一种方法,易于操作)注意事项: sort函数的头文件为#include<algor……