第一个HelloWorld程序(Python代码) 摘要:解题思路:直接使用3个print语句注意事项:1、Python语言的每个语句后面不需要跟分号;2、输入多个相同符号可直接采用解法二的方法,输入符号后直接在后面跟*n(n为符号个数)。参考代码:解法一:…… 题解列表 2022年07月25日 0 点赞 2 评论 933 浏览 评分:7.0
数列极差(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int cmp(int a,int b){ retur…… 题解列表 2022年08月04日 0 点赞 0 评论 848 浏览 评分:7.0
编写题解 1033: [编程入门]自定义函数之字符提取(pythonj的简单题解!) 摘要:解题思路:运用列表的方法可以轻易的解决,加上两个循环注意事项:要了解每个函数的原理并熟练运用、、、、参考代码:ls=[] //定义一个空列表for i in range(3): …… 题解列表 2022年08月05日 0 点赞 0 评论 297 浏览 评分:7.0
paul: C语言数组后移--较易理解版本 摘要:#include const int N; int back(int a[],int b[],int m); int main(){ int i,m; scanf("%d"…… 题解列表 2022年09月05日 0 点赞 0 评论 295 浏览 评分:7.0
floyd算法套用模板 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<algorithm> using namespace std; con…… 题解列表 2022年09月18日 0 点赞 0 评论 350 浏览 评分:7.0
绝对值排序 摘要:解题思路:冒泡排序注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int n; whi…… 题解列表 2022年09月23日 0 点赞 0 评论 268 浏览 评分:7.0
格式化输出 摘要:解题思路:之前在洛谷上有类似的题注意事项:注意每行字符的空格数,多一个都不行参考代码:#include <iostream> using namespace std; int main() { …… 题解列表 2022年10月17日 0 点赞 0 评论 601 浏览 评分:7.0
[编程入门]水仙花数判断 最基础解法 摘要:解题思路:bw=i//100 sw=(i-bw*100)//10 gw=i-bw*100-sw*10注意事项:参考代码: for i in range(100,1000): bw=i…… 题解列表 2022年10月18日 0 点赞 0 评论 400 浏览 评分:7.0
1151: C语言训练-计算一个整数N的阶乘 摘要:```cpp #include using namespace std; int main() { int n,s=1; cin>>n; for(int i=1;…… 题解列表 2022年10月23日 0 点赞 0 评论 373 浏览 评分:7.0
1155: C语言训练-阶乘和数* 摘要:方法一: ```cpp #include #include using namespace std; int Jcheng(int n); int main() { char …… 题解列表 2022年10月23日 0 点赞 0 评论 449 浏览 评分:7.0