1036 带参数宏定义练习 摘要:参考代码: #凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数a,b = map(int,input().split())print(b,a)…… 题解列表 2022年05月17日 2 点赞 0 评论 565 浏览 评分:6.7
1037 宏定义的练习 摘要:解题思路:1.输入两个整数2.求两个整数相除的余数注意事项:参考代码: a,b = map(int,input().split()) print(a%b)…… 题解列表 2022年05月17日 0 点赞 0 评论 676 浏览 评分:8.7
数字排序(冒泡法) 摘要:解题思路:若十个数进行排序时,利用“冒泡法”进行排序。先将10个数中最小的数与a[0]对换,再将a[1]到a[9]中最小的数与a[1]对换,再比较一轮,找出一个未经排序的数中最小的一个,共比较9轮。注…… 题解列表 2022年05月17日 0 点赞 0 评论 484 浏览 评分:9.9
[编程入门]二维数组的转置 摘要:#include<bits/stdc++.h>using namespace std;long long a[1005][1005];int main(){ for(int i=1;i<=3;i++)…… 题解列表 2022年05月17日 0 点赞 0 评论 585 浏览 评分:9.9
[编程入门]数组插入处理 摘要:#include<bits/stdc++.h>using namespace std;long long a[800000];int main(){ for(int i=1;i<=10;i++) c…… 题解列表 2022年05月17日 0 点赞 1 评论 876 浏览 评分:9.9
[编程入门]筛选N以内的素数 摘要:#include<iostream>#include<fstream>#include<algorithm>using namespace std;long long zs(long long cao…… 题解列表 2022年05月17日 0 点赞 0 评论 323 浏览 评分:9.9
三角形——题解 摘要:解题思路:此题一般的迭代解法在遇到较大规模的测试时会需要花费大量时间,从而导致程序通不过,比如我一开始用的如下解法:#include<iostream>#include<vector>using na…… 题解列表 2022年05月17日 0 点赞 0 评论 372 浏览 评分:9.9
[编程入门]选择排序 摘要:解题思路:直接排序注意事项:sort参考代码:#include<bits/stdc++.h>using namespace std;long long a[15];int main(){ fo…… 题解列表 2022年05月17日 0 点赞 0 评论 257 浏览 评分:0.0
1669: 求圆的面积 摘要:解题思路:直接求注意事项:用double参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;d…… 题解列表 2022年05月17日 0 点赞 0 评论 286 浏览 评分:0.0
[编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ cout<<153<<endl<<370<<endl<<37…… 题解列表 2022年05月17日 0 点赞 0 评论 345 浏览 评分:0.0