STL中有swap交换(无需手搓) 摘要:#include<bits/stdc++.h> using namespace std; const int N=1010; int a[N]; int main() { int n,m…… 题解列表 2024年08月04日 0 点赞 0 评论 293 浏览 评分:0.0
这个比1246数据要强,考虑了闰年的情况 摘要:#include<bits/stdc++.h> using namespace std; int main() { int y,m,d; char c; while…… 题解列表 2024年08月04日 0 点赞 0 评论 362 浏览 评分:0.0
不难,但有点繁琐 摘要:#include<bits/stdc++.h> using namespace std; int main() { char c[20]; cin>>c; int sum=0; …… 题解列表 2024年08月04日 0 点赞 0 评论 322 浏览 评分:0.0
2020: 快速排序练习 摘要:```cpp #include using namespace std; int n; int kspx(int a[]){ sort(a,a+n); for(int i=0;i…… 题解列表 2024年08月03日 0 点赞 0 评论 324 浏览 评分:0.0
1756: 整数奇偶排序 摘要:```cpp #include using namespace std; int px(long long a[]){ int j[10],o[10],x=0,y=0; for(int …… 题解列表 2024年08月03日 0 点赞 0 评论 368 浏览 评分:0.0
1169: 绝对值排序 摘要:```cpp #include using namespace std; bool cmp(int x,int y){ return abs(x)>abs(y); } int px…… 题解列表 2024年08月01日 0 点赞 0 评论 374 浏览 评分:0.0
1129: C语言训练-排序问题(2) 摘要:```cpp #include using namespace std; int px(int a[]){ for(int i=0;i>a[i]; sort(a,a+10); for…… 题解列表 2024年08月01日 0 点赞 0 评论 355 浏览 评分:0.0
1128: C语言训练-排序问题(1) 摘要:```cpp #include using namespace std; int px(int a[]){ for(int i=0;i>a[i]; sort(a,a+4); for(…… 题解列表 2024年08月01日 0 点赞 0 评论 632 浏览 评分:9.9
1127: C语言训练-尼科彻斯定理 摘要:```cpp #include using namespace std; int nkcs(int m){ int n=m*m*m,i; printf("%d*%d*%d=%d=",m,…… 题解列表 2024年08月01日 1 点赞 0 评论 355 浏览 评分:0.0
练练浮点数二分吧 摘要:#include<bits/stdc++.h>//浮点数二分 using namespace std; int main() { double x; cin>>x; double l…… 题解列表 2024年08月01日 0 点赞 0 评论 582 浏览 评分:0.0