题解列表

筛选

3001: 整数的和

摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int a,b,c,r;    cin >>a>>b>>c;    r=……

1783: 星期判断机(不用switch)

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

石头剪刀布

摘要:解题思路:注意事项:参考代码:def winner(n,pattern_A,pattern_B):    a=pattern_A*(n//len(pattern_A))+pattern_A[:n%le……

编写题解 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项 我……