编写题解 1033: [编程入门]自定义函数之字符提取(pythonj的简单题解!) 摘要:解题思路:运用列表的方法可以轻易的解决,加上两个循环注意事项:要了解每个函数的原理并熟练运用、、、、参考代码:ls=[] //定义一个空列表for i in range(3): …… 题解列表 2022年08月05日 0 点赞 0 评论 225 浏览 评分: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 评论 226 浏览 评分:7.0
floyd算法套用模板 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<algorithm> using namespace std; con…… 题解列表 2022年09月18日 0 点赞 0 评论 232 浏览 评分:7.0
绝对值排序 摘要:解题思路:冒泡排序注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int n; whi…… 题解列表 2022年09月23日 0 点赞 0 评论 205 浏览 评分:7.0
格式化输出 摘要:解题思路:之前在洛谷上有类似的题注意事项:注意每行字符的空格数,多一个都不行参考代码:#include <iostream> using namespace std; int main() {…… 题解列表 2022年10月17日 0 点赞 0 评论 517 浏览 评分: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 评论 323 浏览 评分: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 评论 328 浏览 评分:7.0
1155: C语言训练-阶乘和数* 摘要:方法一: ```cpp #include #include using namespace std; int Jcheng(int n); int main() { char …… 题解列表 2022年10月23日 0 点赞 0 评论 369 浏览 评分:7.0
求绝对值的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ float a; scanf("%f",&a); if(a>=0){ printf("%.2f",a); }…… 题解列表 2022年10月25日 0 点赞 0 评论 506 浏览 评分:7.0
找第一个只出现一次的字符 摘要:参考代码:#include"stdio.h" #include"string.h" typedef char string[100011]; typedef int Arr[100011]; …… 题解列表 2022年10月27日 0 点赞 4 评论 382 浏览 评分:7.0