循环入门练习2(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int s=0; for(int i=…… 题解列表 2022年10月30日 1 点赞 0 评论 990 浏览 评分:9.9
循环入门练习3(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i,s=0; cin>>n; for(i…… 题解列表 2022年10月30日 0 点赞 0 评论 675 浏览 评分:9.9
循环入门练习4(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n,i,s=0; cin>>n…… 题解列表 2022年10月30日 0 点赞 0 评论 776 浏览 评分:9.9
循环入门练习5(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n,i; cin>>n; …… 题解列表 2022年10月30日 0 点赞 0 评论 833 浏览 评分:9.9
主要指你要想到这种题目肯定是有规律的即可。关键点在于找到公式。 摘要:解题思路:注意事项:参考代码:import java.math.BigInteger;import java.util.Scanner;/*你需要统计所有满足下列条件的长度为 n 的字符串的个数: …… 题解列表 2022年10月30日 1 点赞 0 评论 765 浏览 评分:9.9
精度控制(C语言讲解) 解题思路:这是格式化输入输出内容,熟知格式即可。格式化输出printf为:%[输出最小宽度][.精度][长度]类型例%5.2f表示输出宽度为5,包含两位小数的浮点类型补充:格式化输入scanf格式字符串中可以指定数据宽度,但不能指定精度,%10.2f这种写法错误参考代码:#include 题解列表 2022年10月30日 1 点赞 0 评论 823 浏览 评分:9.9 1681: 数据结构-行编辑程序(c++) 摘要:解题思路:此题的关键就是getline函数,string 类中的方法,不然后续的空格无法输出,或者答案错误注意事项:参考代码:#include #include using namespace s…… 题解列表 2022年10月30日 0 点赞 0 评论 782 浏览 评分:9.9 分糖果题解 摘要:解题思路:注意事项:参考代码:Scanner sc = new Scanner(System.in); int n = sc.nextInt(),count = 0; //人数,计数器 int[]…… 题解列表 2022年10月30日 0 点赞 0 评论 912 浏览 评分:9.9 自由下落的距离计算(超简单) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float h=0,m=0,M,N; scanf("%f%f",&M,&N); for(int i=1; i…… 题解列表 2022年10月30日 0 点赞 0 评论 570 浏览 评分:9.9 二级C语言-阶乘公式求职python 摘要:解题思路:注意事项:参考代码:n = int(input())s = 0a = 1for i in range(1,n+1): a = i*a s += 1/aprint('%s%…… 题解列表 2022年10月30日 0 点赞 0 评论 649 浏览 评分:9.9 « 12...5248524952505251525252535254...59245925 »
1681: 数据结构-行编辑程序(c++) 摘要:解题思路:此题的关键就是getline函数,string 类中的方法,不然后续的空格无法输出,或者答案错误注意事项:参考代码:#include #include using namespace s…… 题解列表 2022年10月30日 0 点赞 0 评论 782 浏览 评分:9.9
分糖果题解 摘要:解题思路:注意事项:参考代码:Scanner sc = new Scanner(System.in); int n = sc.nextInt(),count = 0; //人数,计数器 int[]…… 题解列表 2022年10月30日 0 点赞 0 评论 912 浏览 评分:9.9
自由下落的距离计算(超简单) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float h=0,m=0,M,N; scanf("%f%f",&M,&N); for(int i=1; i…… 题解列表 2022年10月30日 0 点赞 0 评论 570 浏览 评分:9.9
二级C语言-阶乘公式求职python 摘要:解题思路:注意事项:参考代码:n = int(input())s = 0a = 1for i in range(1,n+1): a = i*a s += 1/aprint('%s%…… 题解列表 2022年10月30日 0 点赞 0 评论 649 浏览 评分:9.9