题解列表

筛选

1303: 统计数字

摘要:```cpp #include using namespace std; int a[500001],n,ans=1; void qs(int l,int r) { int m=a……

1304: 阶乘后K位

摘要:```cpp #include using namespace std; int main() { long long pro=1; int i,j,n,k; c……

1305: 老管家的忠诚

摘要:```cpp #include using namespace std; int divide(int *a,int *b,int low,int high) { int mid=a……

1306: 老管家的忠诚2

摘要:```cpp #include using namespace std; int num[100001]; struct node { int l,r,w; }tree[4000……

简单求和训练

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    float a,b,c,sum=0;    scanf("%f%f%f",&a,&b,&c);   for……

自由下落的距离计算

摘要:解题思路:计算经过路程,下一次弹起高度注意事项:最后减去重复加的路程即可参考代码:#include<stdio.h>int main(){    float M,N,sum=0;    scanf("……

2775: 等差数列末项计算

摘要:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int a,b,c;    cin >>a>>b>>c;    cout<……