题解列表

筛选

编写题解 2791: 计算邮资

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int a;    char c;    cin>>……

编写题解 1480: 模拟计算器

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int a,b;    char c;    cin……

编写题解 1783: 星期判断机

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int a;    cin>>a;    switc……

不吉利日期

摘要:``` #include #include #include #include using namespace std; typedef long long ll; const i……

不重复地输出数(很好体现了计数排序的优势)

摘要:解题思路: 实现去除重复元素并排序,正好对应上了计数排序的功能, 计数排序: (1)找出待排序的数组中最大和最小的元素 (2)统计数组中每个值为i的元素出现的次数,存入数组C的第i项 我……

素数回文数的个数两种方法

摘要:暴力写法,范围只有1000我们只需要前后就好了 ``` #include #include #include #include using namespace std; typed……