1023: [编程入门]选择排序 摘要:```cpp #include using namespace std; int k; int xz(int a[10]){ for(int i=0;ia[i]; xz(a); f…… 题解列表 2024年07月30日 0 点赞 0 评论 418 浏览 评分:10.0
1131: C语言训练-斐波纳契数列 摘要:```cpp #include using namespace std; int a[40]; int fbnq(int n){ a[0]=1,a[1]=1; for(int i=2;…… 题解列表 2024年07月30日 1 点赞 0 评论 234 浏览 评分:0.0
1852: 求1+2+3+...+n的值 摘要:解题思路:用for循环,从1累加到n。注意事项:n<=1000000000,变量得开long long。参考代码:#include<bits/stdc++.h>using namespace std;…… 题解列表 2024年07月30日 0 点赞 0 评论 225 浏览 评分:0.0
c++的compare就是c的strcmp 摘要:#include<bits/stdc++.h> using namespace std; int main() { string s[3]; cin>>s[0]>>s[1]>…… 题解列表 2024年07月30日 0 点赞 0 评论 215 浏览 评分:0.0
STL句子拆分成单词 摘要:#include<bits/stdc++.h> using namespace std; set<string>s; int main() { string str,c; …… 题解列表 2024年07月30日 0 点赞 0 评论 236 浏览 评分:0.0
绝了,涨知识了, 科学计数法输出 摘要:解题思路:循环加递归加格式化输出注意事项:首先是变量的大小一定要用对,然后输出格式要对参考代码:#include <iostream> #include <vector> #include <io…… 题解列表 2024年07月30日 0 点赞 0 评论 390 浏览 评分:0.0
[编程入门]三个数最大值C++与言(懒方法) 摘要:解题思路:三个数最大值用两个max就行注意事项:如下图参考代码:#include <bits/stdc++.h> //万能头using namespace std;int main(){ int…… 题解列表 2024年07月30日 3 点赞 0 评论 636 浏览 评分:0.0
简简单单,,,,,有一个函数如下,写一程序,输入x,输出y值。 摘要:解题思路:没啥难度,怎么想怎么做注意事项:两位小数参考代码:#include<iostream> #include <iomanip> using namespace std; int main…… 题解列表 2024年07月30日 0 点赞 0 评论 280 浏览 评分:0.0
2981: 二进制分类 摘要:```cpp #include using namespace std; int A,B; bool turn(int x) { int a=0,b=0; while(x!=0) …… 题解列表 2024年07月29日 0 点赞 0 评论 133 浏览 评分:0.0
2968: 区间内的真素数 摘要:```cpp #include using namespace std; int ss(int a){ if(ax>>y; for(int i=x;i…… 题解列表 2024年07月29日 0 点赞 0 评论 156 浏览 评分:0.0