题解列表

筛选

题解 2997: 梯形面积

摘要:解题思路:在梯形中阴影部分面积是150平方厘米,求梯形面积。众所周知,梯形的面积公式是S=(上底+下底)×高÷2其中,上底为15厘米,下底为25厘米高指的是图中上底与下底之间互相垂直的线段题目给出的是……

编写题解 2780: 奇偶数判断

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int n;    cin>>n;    if(n%2……

题解 2780: 奇偶数判断

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int n;    cin>>n;    if(n%2==0) ……

编写题解 3001: 整数的和

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){   int a,b,c;   cin>>a>>b>>c;  ……

题解 2773: 计算线段长度

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double xa,ya,xb,yb;    cin……

题解 3007: 收费

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double a;    cin>>a;    if……

编写题解 2998: 电影票

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){   int x;   cin>>x;   cout<<x<<……