基石_cpg
基石_cpg
全部文章
分类
题解(4)
归档
标签
去牛客网
登录
/
注册
基石_cpg的博客
全部文章
(共4篇)
题解 | #两数求和#
严重~~~~~~超时但正确的代码: #include <iostream> using namespace std; void printf(int x) { cout<<x; return; } int getsum(int x,int y) { return ...
C++
2022-05-13
1
232
题解 | #实现四舍五入#
#四舍五入函数:round(实型数值); #include <cmath> using namespace std; int main() { double d; cin >> d; d=round(d); cout<<d;...
C++
2022-05-13
1
155
题解 | #定义变量#
#本题需运用取字节运算符:sizeof(数据类型); #include<iostream> using namespace std; int main() { char a; &nbs...
C++
2022-05-13
1
180
题解 | #计算三角形的周长和面积#
#海伦公式: p=C/2; S=sqrt(p*(p-a)(p-b)(p-c)); ">#include<cmath> using namespace std; int main() { double a,b,x; double c,s,p; cin>>...
C++
Python3
2022-05-13
0
164