题解列表

筛选

1203: 多输入输出练习2

摘要:#include <bits/stdc++.h> using namespace std; int main(){     const double PI = 3.1415;//PI要取到四……

明明的随机数TreeMap自动去重排序

摘要:解题思路:java的TreeMap可以自动去重排序,使用TreeMap逐个添加值然后输出即可。注意事项:输出有2行,第一行是去重后的个数(TreeMap.size())参考代码:import java……

1477: 字符串输入输出函数

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

1999: 回文判断

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

1250: 素数回文

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

2630: 又一个送分题

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

1730: 剩下的树-C语言

摘要:```c //剩下的树 #include #include #define max 10000 int main() { int L, M,A[max],a,b,sum; ……

最小公倍数 最大公约数

摘要:解题思路:无注意事项:无参考代码:#include <iostream>using namespace std;int func(int a, int b){ return a % b == 0 ? ……

1985: 分段计算

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

1981: 输出M到N的数

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