编写题解 2233: 蓝桥杯算法训练-图形显示 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int n; cin>>n; for(int i=n;…… 题解列表 2024年07月18日 0 点赞 0 评论 166 浏览 评分:9.9
编写题解 1848: 求输入数据绝对值 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ double a; while(cin>>a) {…… 题解列表 2024年07月18日 0 点赞 0 评论 236 浏览 评分:9.9
C语言求解素数(详解版) 摘要:解题思路:根据素数与合数的概念可以知道,素数是只能被1和它本身整除的数,而合数与之相反,是除了能被1和它本身整除之外,还能被其他因数整除。因此对于在一个范围内求素数,需要用到双循环结构,第一层循环用来…… 题解列表 2024年07月18日 1 点赞 0 评论 312 浏览 评分:10.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 评论 186 浏览 评分: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 评论 170 浏览 评分: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 评论 192 浏览 评分:0.0
C语言有规律的数列求和 摘要:解题思路:首先从题目给出的数列中可以看出,第An项的分母是An-1项的分母与分子之和,而第An项的分子是An-1项的分母,所以分子可以假设为a,分母假设为b,则后一项的分子是a+b,分母是a,再依次求…… 题解列表 2024年07月18日 0 点赞 0 评论 237 浏览 评分:0.0
2846: 统计数字字符个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N = 1e7;ch…… 题解列表 2024年07月18日 0 点赞 0 评论 463 浏览 评分:0.0
2236: 蓝桥杯算法训练-大小写转换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N = 1e7;ch…… 题解列表 2024年07月18日 0 点赞 0 评论 173 浏览 评分:0.0
C语言判断完数(简单易懂版) 摘要:# C语言简单易懂判断完数 ## 解题思路 **由完数的概念可知,完数是它的因子之和等于它本身,所以在求解的时候需要首先考虑因子,然后对因子求和,再来判断求解出来的因子之和是否等于这个数它…… 题解列表 2024年07月18日 0 点赞 0 评论 294 浏览 评分:0.0