题解列表

筛选

3006: 适合晨练

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

题解 2784: 收集瓶盖赢大奖

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

题解 2773: 计算线段长度

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

写题解 2771: 大象喝水

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

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

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

题解 2772: 苹果和虫子

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

题解 2757: 浮点数向零舍

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

题解 2759: 打印字符

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