最高的分数(c++超简单) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, n, max; cin >> n; m…… 题解列表 2022年11月03日 0 点赞 0 评论 878 浏览 评分:9.9
1018: [编程入门]有规律的数列求和(C语言) 题目:有一分数序列:2/13/25/38/513/821/13......求出这个数列的前N项之和,保留两位小数。解题思路:设分子为m,分母为n,定义为浮点类型,用两个变量辅助,a用来存储每一个m/n得到的值,b用来存储总值,b+=a,a,b都是浮点型, 题解列表 2022年11月03日 0 点赞 0 评论 564 浏览 评分:0.0
完数的判断 c语言只用for循环和if语句实现 无数组无指针 摘要:解题思路:用最原始的方法,在只学到控制语句、循环语句的条件下,使用双循环,外层j循环寻找完数,内层i循环寻找因子,并使用新循环输出因子参考代码:#include<stdio.h>int main(){…… 题解列表 2022年11月03日 0 点赞 0 评论 604 浏览 评分:0.0
求整数的和与均值(c++最简解) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int n,sum,i,a; …… 题解列表 2022年11月03日 0 点赞 0 评论 889 浏览 评分:9.0
新手上路,通俗易懂,就是麻烦 #MarkDown编辑器基本使用说明#include#includeintmain(){longlongn,a,c,d,e,f;longlongb;for(n=0;n<10;n++){a=n*n%10;if(a==n){printf("%lld", 题解列表 2022年11月03日 0 点赞 0 评论 563 浏览 评分:0.0
C艹之保留两位小数 #include#includeusingnamespacestd;intmain(){floats=(15+25)*10;//法一/*cout 题解列表 2022年11月03日 0 点赞 0 评论 1407 浏览 评分:9.9
C++超级简单的基础题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int sum = 1; int n; while …… 题解列表 2022年11月02日 0 点赞 0 评论 480 浏览 评分:0.0
数组的距离(简单嘞C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; #include<algorithm> #include<cmath> int m…… 题解列表 2022年11月02日 0 点赞 0 评论 695 浏览 评分:9.9
求[X,Y]内被除3余1并且被除5余3的整数的和(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int x,y,s=0,i; cin>…… 题解列表 2022年11月02日 0 点赞 0 评论 599 浏览 评分:8.0
编写题解 1046: [编程入门]自定义函数之数字后移 摘要:解题思路:注意传传递的数据以及输入的个数数组和想要移动的位数注意事项:移动的写法for (j = b - c; j <b;j++)参考代码:#include <stdio.h>int a[10001]…… 题解列表 2022年11月02日 0 点赞 0 评论 483 浏览 评分:9.9