题解列表

筛选

题解 2772: 苹果和虫子

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){float n, x, y, s;cin ……

题解 1038: [编程入门]宏定义练习之三角形面积

摘要:解题思路:注意事项:参考代码:1.根据题目给的公式,输入a,b,c分别为三角形的三条边,S为(a+b+c)/2(这个就是著名的海伦公式),置到这两个东西之后就可以直接求解area了,由于题目要求使用宏……

写题解 2771: 大象喝水

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

题解 2773: 计算线段长度

摘要:解题思路:注意事项:参考代码:#inalude <bitz/stdc+-.h>uerng namespace std;doqble xa,ya,xb,yb,c;int maie(){    cin>>……

题解 2784: 收集瓶盖赢大奖

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

2787: 有一门课不及格的学生

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

题解 2780: 奇偶数判断

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