Hoooxi
Hoooxi
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Hoooxi的博客
全部文章
(共36篇)
题解 | #计算三角形的周长和面积#
#include <stdio.h> #include <math.h> int main() { double a,b,c,circumference,p,area; scanf("%lf %lf %lf",&a,&b,&c); circumfere...
2023-02-23
0
305
题解 | #计算三角形的周长和面积#
#include <stdio.h> #include <math.h> int main() { double a,b,c; scanf("%lf %lf %lf",&a,&b,&c); double cosA = (pow(b,2)+pow(c,2...
2023-02-23
0
298
题解 | #统计成绩#
#include <stdio.h> int main() { int n=0; scanf("%d",&n); int i=0; float arr[n]; float max = 0,min = 100,average=0; for(...
2023-02-23
0
231
题解 | #开学?#
#include <stdio.h> int main() { int x,n; scanf("%d %d",&x,&n); x = (x-1+n)%7+1; printf("%d",x); } 思路:类似数组实现循环队列、和哈希表的取余操作,把星期一到...
2023-02-22
0
296
题解 | #成绩输入输出#
#include <stdio.h> int main() { short short chn,math,eng; scanf("%hhd %hhd %hhd\n",&chn,&math,&eng); printf("score1=%hhd,score2=%hh...
2023-02-22
0
275
题解 | #实现四舍五入#
#include <iostream> using namespace std; int main() { float a; scanf("%f",&a); int b =a; if(abs(b-a)>=0.5) { if(...
2023-02-22
0
272
首页
上一页
1
2
3
4
下一页
末页