编写题解 2788: 晶晶赴约会 摘要:解题思路:用if语句借此题注意事项:只是1,3,5输出No,6,7也输出yes参考代码:#include<iostream>using namespace std;int main(){ int…… 题解列表 2023年02月23日 0 点赞 0 评论 343 浏览 评分:9.9
前缀和 + 二分 摘要:# 前缀和 + 二分 先看测试数据范围 10^5, 暴力会TLE。 先将每个人刷题的数量保存,并且更新最多刷题数量 `sum[i]`来存放刷题数目不超过i个人数, 因此可以得到…… 题解列表 2023年02月23日 0 点赞 0 评论 819 浏览 评分:9.4
C语言链表解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h> typedef struct Link{ int data; struct Link *next; }Link; //循…… 题解列表 2023年02月23日 0 点赞 0 评论 364 浏览 评分:0.0
编写题解 2799: 奥运奖牌计数 摘要:解题思路:sum的用法注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int a[n]…… 题解列表 2023年02月23日 0 点赞 0 评论 351 浏览 评分:6.0
自由下落的距离计算 好理解的思路(C语言) 摘要:解题思路:由题目知,该题要运用等比数列,an=a1*q^(n-1),Sn=a1(1-q^n)/(1-q),先假设高度为1米,a1=1,q=0.5,要求第n次下落后再弹起的高度,也就是第a(n+1)项,…… 题解列表 2023年02月23日 0 点赞 1 评论 367 浏览 评分:9.9
记录解题过程。 摘要:解题思路: 注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double x1, x2,x3,x4; d…… 题解列表 2023年02月23日 0 点赞 0 评论 387 浏览 评分:0.0
简单点有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float n=2.0,z=1.0; float s=0; int N; scanf("…… 题解列表 2023年02月23日 0 点赞 0 评论 283 浏览 评分:9.9
简单易懂!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[25],str2[25]; gets(str); char…… 题解列表 2023年02月23日 0 点赞 0 评论 364 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-质因数个数 摘要:解题思路:该问题基于算数基本定理对于任意一个正整数 ,可以将它分解成 个质因子的乘积例如36=2*2*2*3*320=2*2*5由此定理可以发现,对于正整数 来说,它的任意一个因数 都是它质因数…… 题解列表 2023年02月23日 2 点赞 1 评论 1215 浏览 评分:8.2
借鉴楼上的 存下来 以后多看看 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;char a[1000];int b[1000],c[1000],d[1000],k…… 题解列表 2023年02月23日 0 点赞 0 评论 382 浏览 评分:0.0