首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
星泽Y
获赞
0
粉丝
0
关注
0
看过 TA
0
2028
C工程师
IP属地:甘肃
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑星泽Y吗?
发布(5)
评论
刷题
收藏
星泽Y
关注TA,不错过内容更新
关注
03-08 14:55
C工程师
题解 | 牛牛的时钟
#include <stdio.h> typedef struct TIME { int h; int m; int s; }time; int main() { int n=0; scanf("%d",&n); time t; t.h=0; t.m=0; t.s=0; for (int i=0;i<n;i++) { int s=0; int s1=0; int m1=0; int h1=0; scanf("%d",&s); s1=t.s+s; if(s1>=60) { t.s = s1 % 60; m1 = t....
0
点赞
评论
收藏
分享
02-24 23:15
C工程师
题解 | 2的n次方计算
#include <stdio.h> int main() { int n=0; scanf("%d",&n); int result =1 << n;//将整数 1 向左移动 n 位,得到 2 的 n 次方的结果,并将其存储在变量 result 中。 printf("%d\n",result); return 0; }
0
点赞
评论
收藏
分享
02-24 18:45
C工程师
题解 | 按照格式输入并交换输出
#include <stdio.h> int main() { int a=0; int b=0; scanf("a=%d,b=%d",&a,&b); a=a^b; b=a^b; a=a^b; printf("a=%d,b=%d",a,b); return 0; }
0
点赞
评论
收藏
分享
02-20 19:42
C工程师
题解 | 字符逆序
#include <stdio.h> #include <string.h> void Reverse(char* str) { char* left = str; char* right = str + strlen(str)-1; while(left < right) { char temp = *left; *left = *right; *right = temp; left++; right--; } } int main() { //法一 // char ch[10000]; // gets(ch); // for(int i=strlen(ch)-...
0
点赞
评论
收藏
分享
02-19 17:53
C工程师
题解 | 有序序列合并
#include <stdio.h> int main() { int n,m; //输入两个整数 scanf("%d %d",&n,&m); int arr[10000]={0}; //输入第一个数组 for(int i=0;i<n+m;i++) { scanf("%d ",arr+i); } //输入第二个数组 for(int i=0;i<m+n;i++) { scanf("%d ",arr+i); } //冒泡排序法 for(int i=0;i<n+m-1;i++) { for(in...
0
点赞
评论
收藏
分享
1
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务