题解列表
简单点有规律的数列求和
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float n=2.0,z=1.0; float s=0; int N; scanf("……
自由下落的距离计算 好理解的思路(C语言)
摘要:解题思路:由题目知,该题要运用等比数列,an=a1*q^(n-1),Sn=a1(1-q^n)/(1-q),先假设高度为1米,a1=1,q=0.5,要求第n次下落后再弹起的高度,也就是第a(n+1)项,……
编写题解 2799: 奥运奖牌计数
摘要:解题思路:sum的用法注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int a[n]……
编写题解 2788: 晶晶赴约会
摘要:解题思路:用if语句借此题注意事项:只是1,3,5输出No,6,7也输出yes参考代码:#include<iostream>using namespace std;int main(){ int……
2839: 石头剪刀布(Python)
摘要:解题思路:注意事项:参考代码:N,NA,NB = map(int,input().split())
la = list(map(int,input().split()))
lb = list(ma……
1042: [编程入门]电报加密
摘要:#此题和上一题类似,也需要接收空格,同时还需要进行字母加密,难度稍高。
```cpp
#include
#include
#include
using namespace std;
/……