1058: 二级C语言-求偶数和(很简单的东西) 摘要: #include int main() { int n; int sum=0; int a[100]; //通过…… 题解列表 2022年10月05日 0 点赞 0 评论 290 浏览 评分:0.0
简洁明了的代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { long N,sum=0; scanf("%d",&N); for(int…… 题解列表 2022年10月05日 0 点赞 0 评论 276 浏览 评分:0.0
[编程入门]第一个HelloWorld程序 摘要:解题思路:注意事项:1,他们转行了,不是一排的!(相关结尾语————endl;)2,数清楚有多少“*”,否则是错的。3,如果要转行,别把这个“ ”的符号忘了参考代码:#include<iostream…… 题解列表 2022年10月05日 0 点赞 0 评论 370 浏览 评分:9.9
计算(a+b)/c的值 摘要:解题思路:先把a,b,c输入,再算(按照公式就行了)注意事项:参考代码:#include<iostream> using namespace std; …… 题解列表 2022年10月05日 0 点赞 0 评论 562 浏览 评分:6.0
计算(a+b)*c的值 摘要:解题思路:和2763一样,要先输入a,b,c,再算(按照公式)注意事项:cin和cout后带的符号不同参考代码:#include<iostream> using namespace std; …… 题解列表 2022年10月05日 0 点赞 0 评论 1878 浏览 评分:8.0
记录自己答案:1021 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; double xn1,xn=1.0; scanf("%d",&x); xn1=(xn+x/xn)/…… 题解列表 2022年10月05日 0 点赞 0 评论 326 浏览 评分:0.0
史上最简洁的题解,看了许多大佬的题解,复杂麻烦,虽然题目要求使用结构体,但完全没有必要 摘要:解题思路:看了许多大佬的题解,复杂麻烦,虽然题目要求使用结构体,但完全没有必要,单单用一个主函数和简洁的几行代码就ok了,能解出题的办法就是好办法。注意事项:本题解的关键就是scanf中利用%s去存储…… 题解列表 2022年10月06日 0 点赞 0 评论 399 浏览 评分:9.9
阶乘求和(递归) 摘要:解题思路: 递归注意事项: 由题可知,n<=20,当n越接近20,其数量及越庞大,求阶乘与求阶乘和时应使用long long int 类型。参考代码:#include <stdio.h> lo…… 题解列表 2022年10月06日 0 点赞 0 评论 243 浏览 评分:9.9
求和训练(递归) 摘要:解题思路: 递归注意事项: 在求倒数时,将1/c写为1.0/c或者1/(float) c参考代码:#include <stdio.h> // 求1~a的和 int sum_add(int a…… 题解列表 2022年10月06日 0 点赞 0 评论 276 浏览 评分:9.9
题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int x,y; cin>>x>>y; int a=…… 题解列表 2022年10月06日 0 点赞 0 评论 858 浏览 评分:9.9