题解列表
2997: 梯形面积
摘要:解题思路:注意事项:三角形的高=s*2/a参考代码:#includeusing namespace std;int main(){ double e; e=150*2/15*(15+25)……
2806: 人口增长问题
摘要:```
#include
using namespace std;
int main(){
int n;
double x;
cin>>x>>n;
for(int i=1; i……
2794: 求平均年龄
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double b,c; cin>>n; for……
2805: 乘方计算
摘要:```
#include
using namespace std;
int main(){
int a,n,sum;
cin>>a>>n;
sum=1;
for(int i=0;……
2804: 与指定数字相同的数的个数
摘要:```
#include
using namespace std;
int main(){
int x,k,n,x1=0;
cin>>k>>x;
for(int i=1; i>n;
……
c++ STL解法,用上vector容器,sort函数
摘要:#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
bool cmp(int a,int ……
题解 1151: C语言训练-计算一个整数N的阶乘
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int N,a=1; cin>>N; for(int i=1……