向上递增单次尾部循环公式求和 摘要:解题思路:构造一函数调用自身,每次调用保存上次计算的结果,每一项an都在增加,故多设一参数保存an项注意事项:循环的结束条件应与递增方向相关参考代码:/*求Sn=a+aa+aaa+…+aa…aaa(有…… 题解列表 2024年01月19日 0 点赞 0 评论 151 浏览 评分:0.0
C++输出所有水仙花数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int i,j; int a,b,c; for(i…… 题解列表 2024年01月19日 0 点赞 0 评论 201 浏览 评分:0.0
2757:浮点数向零舍入 摘要:注意事项:参考代码:#include<stdio.h>int main(){ float a = 0; scanf("%f",&a); int b = 0; b = a; …… 题解列表 2024年01月19日 1 点赞 0 评论 347 浏览 评分:0.0
2758:打印ASC11码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a; scanf("%c",&a); printf("%d\n",a); re…… 题解列表 2024年01月19日 0 点赞 0 评论 281 浏览 评分:0.0
直接使用自带的while循环,然后多一行直接处理第一句即可 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2024年01月19日 0 点赞 0 评论 197 浏览 评分:0.0
使用判断语句提前终止000000000000444444444 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2024年01月19日 0 点赞 0 评论 169 浏览 评分:0.0
1811:浮点数专题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double a; scanf("%lf", &a); printf("%f\n", a); …… 题解列表 2024年01月19日 0 点赞 0 评论 301 浏览 评分:0.0
编写题解 1266: 马拦过河卒 摘要:解题思路:观察发现: f(i,j)=f(i−1,j)+f(i,j−1)注意事项: 防止马的坐标出界,直接加二(单独判断也可以)参考代码:m,n,i,j=map(int,inp…… 题解列表 2024年01月19日 0 点赞 0 评论 330 浏览 评分:9.9
蓝桥杯基础练习VIP-FJ的字符串(java) 摘要:```java Scanner sc = new Scanner(System.in); int n = sc.nextInt(); char c = 'A';…… 题解列表 2024年01月19日 0 点赞 0 评论 198 浏览 评分:0.0
题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数,小白易懂 摘要:解题思路:注意事项:i不能从0开始参考代码:#include<iostream>using namespace std;int main(){ int a,b,ret,t; cin>>a>…… 题解列表 2024年01月19日 0 点赞 0 评论 209 浏览 评分:0.0