题解列表

筛选

欢迎交流指正

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int main() { int a[100], m, n,s……

题解 1764: 循环入门练习1

摘要:解题思路:利用高斯的求数方法,没想到对了。注意事项:直接输出结果就行参考代码:#include <bits/stdc++.h>using namespace std;int main(){    co……

善于运用C++的sort函数

摘要:参考代码:#include#includeusing namespace std; int main() { int n; scanf("%d",&n); getchar(); /……

2861: 验证子串

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

题解 2784: 收集瓶盖赢大奖

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

题解 2779: 输出绝对值

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

题解 2781: 奇偶ASCII值判断

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

编写题解 3001: 整数的和

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

3009: 判断闰年

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