编写题解 1034: [编程入门]自定义函数之数字分离 摘要:```c //自定义函数之数字分离 #include #include void NumSepara(){ char s[5];//s[4]编译不通过,数组大小定义大于4才通过,这系统…… 题解列表 2022年08月20日 0 点赞 0 评论 338 浏览 评分:0.0
1517——————蓝桥杯算法提高VIP-实数相加 摘要:**import** 导入模块,每次使用模块中的函数都要是定是哪个模块。 **from…import *** 导入模块,每次使用模块中的函数,直接使用函数就可以 **decimal 模块**:…… 题解列表 2022年08月21日 0 点赞 0 评论 430 浏览 评分:0.0
这一题倒是比前一道简单 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <malloc.h> main(){ int* p,i=0,exce=0,quil=0,unq=0; p …… 题解列表 2022年08月21日 0 点赞 0 评论 243 浏览 评分:0.0
密码(C语言) 摘要:解题思路:注意事项:比较简单,没什么好主意的参考代码:#include<stdio.h>#include<string.h>#include <ctype.h>#include<math.h>int …… 题解列表 2022年08月21日 0 点赞 0 评论 263 浏览 评分:0.0
编写题解 1121: C语言训练-8除不尽的数(笨办法) 摘要:根据题目要求,设置好判断条件(if语句),然后使用for循环(循环体中未设置判断条件),从大到小取数,代入进去尝试,直到遇到符合所有条件的数,使用break终止跳出循环,并且输出。 ```c //…… 题解列表 2022年08月21日 0 点赞 0 评论 378 浏览 评分:0.0
个人思路,随便看看吧 摘要:解题思路:学会列表的相关操作很重要注意事项:参考代码:def fun(n): l1 = [n] while n != 1: if n % 2 == 0: …… 题解列表 2022年08月22日 0 点赞 0 评论 328 浏览 评分:0.0
绝对值排序(C语言)冒牌排序进行排列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,j,x,t; while(scanf("%d",&x)!…… 题解列表 2022年08月22日 0 点赞 0 评论 273 浏览 评分:0.0
[STL训练]Who's in the Middle:我看很多大佬都是用sort的,我来写一个使用STL中的multiset来实现的 摘要:解题思路:找到中间值注意事项:参考代码:#include<iostream> #include<set> using namespace std; int main(void) { …… 题解列表 2022年08月23日 0 点赞 0 评论 457 浏览 评分:0.0
2060: [STL训练]美国大选【我来使用STL算法中的multiset来写一份题解】 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<set>using namespace std;int main(void){ int i,temp; …… 题解列表 2022年08月23日 0 点赞 0 评论 878 浏览 评分:0.0
题解 1119: C语言训练-"水仙花数"问题1(C) 摘要:解题思路:本题在主函数中进行输入,水仙花判断函数中进行判断和输出。参考代码:#include<stdio.h> #include<math.h> void Narcissus(int num)…… 题解列表 2022年08月23日 0 点赞 0 评论 340 浏览 评分:0.0