题解列表

筛选

1017: [编程入门]完数的判断

摘要:思路是从 1 到 n 挨个处理,保存其所有因数(除了自身),最后所有因数和与自身比较,如果相等则为完数。#include<bits/stdc++.h> using namespace std;  ……

日期排序(C++) multiset

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<set> #include<string> using namespac……

1051: [编程入门]结构体之成绩统计2

摘要:先把数据读进来,然后遍历所有学生数据,保存最高分学生数据,分别保存所有学生三科成绩,输出时使用了accumulate()函数。#include<bits/stdc++.h> using namesp……

蓝桥杯基础练习-数列排序(C++)

摘要:解题思路: 测试数据居然没有重复的数字注意事项:参考代码:#include<iostream> #include<set> using namespace std; //multiset<int……

1124: C语言训练-大、小写问题

摘要:此题关键是使用isupper()函数,另外注意读数据使用getline()。#include<bits/stdc++.h> using namespace std; int main(){   ……

1130: C语言训练-数字母

摘要:此题关键是使用isalpha()函数,注意读数据使用getline()。(尽管使用cin也能过)#include<bits/stdc++.h> using namespace std; int m……