2236: 蓝桥杯算法训练-大小写转换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N = 1e7;ch…… 题解列表 2024年07月18日 0 点赞 0 评论 219 浏览 评分:0.0
2846: 统计数字字符个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N = 1e7;ch…… 题解列表 2024年07月18日 0 点赞 0 评论 540 浏览 评分:0.0
C语言有规律的数列求和 摘要:解题思路:首先从题目给出的数列中可以看出,第An项的分母是An-1项的分母与分子之和,而第An项的分子是An-1项的分母,所以分子可以假设为a,分母假设为b,则后一项的分子是a+b,分母是a,再依次求…… 题解列表 2024年07月18日 0 点赞 0 评论 280 浏览 评分:0.0
编写题解 2812: 球弹跳高度的计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int h,i; scanf("%d",&h); double h1=h,s=0.0; s=2.0*h1; fo…… 题解列表 2024年07月18日 0 点赞 0 评论 230 浏览 评分:0.0
1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; scanf("%d",&n); while(n>1) { if(n%2==0) …… 题解列表 2024年07月18日 0 点赞 0 评论 207 浏览 评分:0.0
1332: 津津的储蓄计划 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m=0,y=0; double sum=0.0; for(int i=0;i<12;i++) { …… 题解列表 2024年07月18日 0 点赞 0 评论 219 浏览 评分:0.0
C语言求解素数(详解版) 摘要:解题思路:根据素数与合数的概念可以知道,素数是只能被1和它本身整除的数,而合数与之相反,是除了能被1和它本身整除之外,还能被其他因数整除。因此对于在一个范围内求素数,需要用到双循环结构,第一层循环用来…… 题解列表 2024年07月18日 1 点赞 0 评论 390 浏览 评分:10.0
编写题解 1848: 求输入数据绝对值 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ double a; while(cin>>a) {…… 题解列表 2024年07月18日 0 点赞 0 评论 263 浏览 评分:9.9
编写题解 2233: 蓝桥杯算法训练-图形显示 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int n; cin>>n; for(int i=n;…… 题解列表 2024年07月18日 0 点赞 0 评论 203 浏览 评分:9.9
约瑟夫问题-变式(一种个人的解法) 摘要:题目:有n人围成一圈,顺序排号。从第1个人开始报数(从1到3报数),凡报到3的人退出圈子,问最后留下的是原来的第几号的那位。解题思路(或者说过程):不妨找到特殊的n值,使得1号选手留到最后,显而易见的…… 题解列表 2024年07月18日 0 点赞 0 评论 384 浏览 评分:9.9