首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
枣泥月饼yyds
获赞
1
粉丝
2
关注
3
看过 TA
28
北京科技大学
2023
嵌入式软件开发
IP属地:江苏
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑枣泥月饼yyds吗?
发布(9)
评论
刷题
收藏
枣泥月饼yyds
关注TA,不错过内容更新
关注
06-13 17:45
北京科技大学 嵌入式软件开发
题解 | 平方根
#include <stdio.h>#include<math.h>int main() { int a,b; scanf("%d %d", &a) ; b = sqrt(a); printf("%d\n", b ); return 0;}
0
点赞
评论
收藏
分享
06-13 17:40
北京科技大学 嵌入式软件开发
题解 | 整数的十位
#include <stdio.h> int main() { int a; scanf("%d", &a); a=abs(a); a=a/10; printf("%d\n", a%10); return 0; }
0
点赞
评论
收藏
分享
06-13 17:34
北京科技大学 嵌入式软件开发
题解 | 整数的个位
#include <stdio.h> int main() { int a; scanf("%d", &a) ; a = abs(a); printf("%d\n", a%10); return 0; }
0
点赞
评论
收藏
分享
06-12 17:08
北京科技大学 嵌入式软件开发
题解 | 计算带余除法
#include <stdio.h> int main() { int a, b; scanf("%d %d",&a,&b); printf("%d %d",a/b,a%b); return 0; }
0
点赞
评论
收藏
分享
06-12 16:44
北京科技大学 嵌入式软件开发
题解 | 疫情死亡率
#include <stdio.h>int main() { int a, b; scanf("%d %d", &a, &b); float c = 100.0*b/a;//注意100.0而不能用100,这样等号右边计算结果才能是浮点数 printf("%.3f%\n", c); return 0;}
0
点赞
评论
收藏
分享
06-12 15:56
北京科技大学 嵌入式软件开发
题解 | 复读机
#include <stdio.h> #include <stdlib.h> int main() { // 读取第一行:整数 int a; scanf("%d", &a); getchar(); // 消耗换行符 // 读取第二行:长整数(使用long long确保存储1145141919810) long long b; scanf("%lld", &b); getchar(); // 消耗换行符 // 读取第三行:浮点数 float c; scanf("%f", &c); getc...
0
点赞
评论
收藏
分享
06-11 19:15
北京科技大学 嵌入式软件开发
题解 | 牛牛学说话之-字符串
#include <stdio.h> #include <stdlib.h> int main() { int capacity = 10; // 初始缓冲区容量 int len = 0; // 当前字符串长度 char *s = (char *)malloc(capacity * sizeof(char)); // 分配初始内存 if (s == NULL) { fprintf(stderr, "内存分配失败\n"); return 1; } int c; // 逐个字符读取输入,直到换行符或EOF while ((c = getchar()) !...
0
点赞
评论
收藏
分享
06-11 19:15
北京科技大学 嵌入式软件开发
题解 | 牛牛学说话之-字符串
#include <stdio.h> #include <stdlib.h> int main() { int capacity = 10; // 初始缓冲区容量 int len = 0; // 当前字符串长度 char *s = (char *)malloc(capacity * sizeof(char)); // 分配初始内存 if (s == NULL) { fprintf(stderr, "内存分配失败\n"); return 1; } int c; // 逐个字符读取输入,直到换行符或EOF while ((c = getchar()) !...
0
点赞
评论
收藏
分享
06-07 11:43
北京科技大学 嵌入式软件开发
题解 | 牛牛学说话之-整数
#include <stdio.h> int main() { int a; while (scanf("%d", &a) != EOF) { printf("%d\n", a); } return 0; }
0
点赞
评论
收藏
分享
1
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务