题解列表

筛选

蓝桥杯 复数求和自编链表完整版c++解法

摘要:解题思路:本题思路:1:比赛思路可以不通过链表的方法而直接使用遍历输入的办法直接求得结果。                                2:这里采用数据结构中单链表中

2225: 蓝桥杯算法训练-出现次数最多的整数

摘要:用 pair 保存数字本身和出现的次数,由于输入数据是有序的,所以只需要判断 vector 最后一个元素的 first 是不是与读进来的数字相等就可以进行接下来的压入向量和次数增加操作了。#inclu……

1981: 输出M到N的数

摘要:无脑打印。#include<bits/stdc++.h> using namespace std; int main(){     int a,b;     cin >> a >> b; ……

1985: 分段计算

摘要:#include<bits/stdc++.h> using namespace std; int main(){     int x;     cin >> x;     if(x<3)……

2630: 又一个送分题

摘要:#include <bits/stdc++.h> using namespace std; int main(){     int n,a;     cin >> n;     doub……

1250: 素数回文

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; bool sushu(int &n){//判断素数     if(n……

1999: 回文判断

摘要:equal 无脑往上拍。#include <bits/stdc++.h> using namespace std; int main(){     string s;     getlin……

1477: 字符串输入输出函数

摘要:简单题。#include<iostream> using namespace std; int main() {        double n;     string s;     co……