题解列表

筛选

题解 2758: 打印ASCII码

摘要:解题思路:注意事项:参考代码:2758: 打印ASCII码知识点知识点1:强制类型转换我们都知道,数据类型有整型int、浮点型float、字符char等等。我们可以通过在变量前面加括号,对已有的类型进……

题解 2759: 打印字符

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

题解 2757: 浮点数向零舍

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

题解 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……