一枚朱
一枚朱
全部文章
分类
归档
标签
去牛客网
登录
/
注册
一枚朱的博客
全部文章
(共45篇)
题解 | #统计成绩#
#include <stdio.h> int main() { int n; float sum = 0.0; scanf("%d", &n); float a[100]; for (int i = 0; i <...
2024-08-18
1
105
题解 | #计算三角形的周长和面积#
#include <stdio.h> #include<math.h> //加上#include<math.h>,调用sqrt和pow函数 int main() { float a, b, c; scanf("%f %f %f"...
2024-08-18
1
142
题解 | #你能活多少秒#
#include <stdio.h> int main() { long age; scanf("%ld",&age); printf("%ld",age*31560000); return 0; }
2024-08-18
1
103
题解 | #开学?#
#include <stdio.h> int main() { int x, N; scanf("%d %d", &x, &N); if ((x + (N % 7)) % 7 == 0) { printf(&q...
2024-08-17
1
109
题解 | #浮点数的个位数字#
#include <stdio.h> //注意:C语言中的取余运算只能针对整数,也就是说,% 的两边都必须是整数,不能出现小数,否则编译器会报错。 int main() { double a; scanf("%lf", &a); //输入小数...
2024-08-17
1
132
首页
上一页
1
2
3
4
5
下一页
末页