1042: [编程入门]电报加密 摘要:#此题和上一题类似,也需要接收空格,同时还需要进行字母加密,难度稍高。 ```cpp #include #include #include using namespace std; /…… 题解列表 2023年02月23日 0 点赞 1 评论 340 浏览 评分:9.9
2839: 石头剪刀布(Python) 摘要:解题思路:注意事项:参考代码:N,NA,NB = map(int,input().split()) la = list(map(int,input().split())) lb = list(ma…… 题解列表 2023年02月23日 0 点赞 0 评论 506 浏览 评分:9.5
编写题解 2788: 晶晶赴约会 摘要:解题思路:用if语句借此题注意事项:只是1,3,5输出No,6,7也输出yes参考代码:#include<iostream>using namespace std;int main(){ int…… 题解列表 2023年02月23日 0 点赞 0 评论 308 浏览 评分:9.9
前缀和 + 二分 摘要:# 前缀和 + 二分 先看测试数据范围 10^5, 暴力会TLE。 先将每个人刷题的数量保存,并且更新最多刷题数量 `sum[i]`来存放刷题数目不超过i个人数, 因此可以得到…… 题解列表 2023年02月23日 0 点赞 0 评论 792 浏览 评分:9.4
C语言链表解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h> typedef struct Link{ int data; struct Link *next; }Link; //循…… 题解列表 2023年02月23日 0 点赞 0 评论 256 浏览 评分:0.0
编写题解 2799: 奥运奖牌计数 摘要:解题思路:sum的用法注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int a[n]…… 题解列表 2023年02月23日 0 点赞 0 评论 323 浏览 评分: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 评论 336 浏览 评分:9.9
记录解题过程。 摘要:解题思路: 注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double x1, x2,x3,x4; d…… 题解列表 2023年02月23日 0 点赞 0 评论 352 浏览 评分: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 评论 257 浏览 评分:9.9
简单易懂!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[25],str2[25]; gets(str); char…… 题解列表 2023年02月23日 0 点赞 0 评论 310 浏览 评分:0.0