1000: [竞赛入门]简单的a+b题解 摘要:解题思路:使用cin,cout解题即可注意事项:注意头文件#include<iostream>参考代码:#include<iostream>using namespace std;int main()…… 题解列表 2021年11月11日 0 点赞 0 评论 418 浏览 评分:6.0
非常精简(C语言)。 摘要:解题思路:注意事项:当&&前面的n--等于零后就不会执行后面的输入。参考代码:#includeint main(){ int a,b,c,sum=0; scanf("%d",&a); …… 题解列表 2021年11月13日 0 点赞 0 评论 236 浏览 评分:6.0
二级C语言-自定义函数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int ctof(int c){ int f; f=32+c*9/5; return f;}int main(){ for(int c…… 题解列表 2021年11月14日 0 点赞 0 评论 333 浏览 评分:6.0
C语言解法 自定义函数求一元二次方程 摘要:解题思路:正常思路 注意事项:符号 和 括号参考代码:#include<stdio.h>#include<math.h>void yuan(int a, int b, int c){ doubl…… 题解列表 2021年11月16日 0 点赞 0 评论 343 浏览 评分:6.0
思路清晰的递归 摘要:解题思路: 已知第一年有一只母牛,且每年年初会生一子,子会隔三年生一子,定义一个函数count(),功能是求前n年的母牛的数量,前n年的母牛数量是前n-1年的数量加上第n年的数量注意事…… 题解列表 2021年11月16日 0 点赞 0 评论 562 浏览 评分:6.0
C++代码(可能是初学者最好看懂的代码了) 摘要:解题思路:一次一次看,(n-1)次之后完成,去掉的置0,遇见0跳过注意事项:记得取余达到循环效果参考代码:#include<iostream>using namespace std;int main(…… 题解列表 2021年11月17日 0 点赞 0 评论 505 浏览 评分:6.0
[编程入门]数字逆序输出--题解(容易理解版) 摘要:解题思路:注意事项:参考代码:a = list(map(int,input().split()))for i in range(1,len(a)+1): print(a[-i],end=" ")…… 题解列表 2021年11月21日 0 点赞 0 评论 542 浏览 评分:6.0
简单粗暴的写代码,复制粘贴 摘要:解题思路:首先必须要知道它有多少个*,然后按照原来的格式输入还需要换下一行每一个的输出都要\n.注意事项:要注意换行,而且输入的*和Hello World!要一样参考代码:#include<stdio…… 题解列表 2021年11月21日 0 点赞 0 评论 643 浏览 评分:6.0
简简单单又是一道c语言 摘要:解题思路:依次比大小注意事项:无参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a>100 || a<0){ …… 题解列表 2021年11月25日 0 点赞 0 评论 301 浏览 评分:6.0
字符串连接 摘要:解题思路: 注意事项: 参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string a, b; cin>>…… 题解列表 2021年11月26日 0 点赞 0 评论 378 浏览 评分:6.0