牛客754244638号
牛客754244638号
全部文章
分类
题解(23)
归档
标签
去牛客网
登录
/
注册
牛客754244638号的博客
全部文章
(共22篇)
题解 | #数位五五#
">int sm(int a,int b); int main(){ int a,b,c; scanf("%d %d",&a,&b); c=sm(a,b); printf("%d\n",c); return 0; } int sm(int a,int b) { int i...
C
2022-03-25
0
279
题解 | #小乐乐计算函数#
#include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int max(int a,int b,i...
C
2022-03-24
0
290
题解 | #反转链表#
利用指针p依次指向㊣向的链表 q1与q依次将正向链表的next指向前一位,q作为改变指向之后遍历的指针 /*struct ListNode { * int val; * struct ListNode *next; * }; * * C语言声明定义全局变量请加上static,防止重复定义...
C
2022-03-21
0
278
题解 | #简单计算器#
#include <stdlib.h> #include<stdio.h> #include<math.h> int main(){ double a,b,m; char c; scanf("%lf %c %lf",&a,&...
C
2022-03-19
0
307
题解 | ##
字符和ASCII的转换,字符数组的运用 #include <stdlib.h> #include<stdio.h> #include<math.h> int main(){ char ch[13]={0}; scanf("%s",ch); ...
C
2022-03-19
0
418
题解 | #闰年计算和天数的关系#
#include <stdlib.h> #include<stdio.h> #include<math.h> int main(){ int b,a,c; while(~scanf("%d %d",&b,&a)){ i...
C
2022-03-19
0
268
题解 | #一元二次方程的计算#
注意德塔==0时,判断x分母的值若等于0,就直接输出0.00 否则输出-0.00 #include <stdlib.h> #include<stdio.h> #include<math.h> int main(){ float a=0,b=0,c=0; ...
C
2022-03-19
1
351
题解 | #牛牛的计划#
#include <stdlib.h> int main(){ int y,m,d,y1,m1,d1; while(~scanf("%d %d %d\n%d %d %d",&y,&m,&d,&y1,&m1,&d1)){ ...
C
2022-03-18
0
284
题解 | #牛牛的金币###
int main(){ int a,b,c,d; scanf("%d %d\n%d %d",&a,&b,&c,&d); if((c-a)==1) printf("r"); else if((c-a)==-1) printf("l"); else if((d-b)==1...
C
2022-03-18
0
258
题解 | #牛牛的快递#
#include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop *...
C
2022-03-18
0
271
首页
上一页
1
2
3
下一页
末页