自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 【林非白】 洛谷 P1421 小玉买文具

#include <stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); printf("%d",(a*10+b)/19); return 0; }

2021-12-28 01:14:26 512

原创 【林非白】 洛谷 P5708 【深基2.习2】三角形面积

#include <stdio.h> #include <math.h> int main() { float a,b,c,p; double s; scanf("%f%f%f",&a,&b,&c); if(a+b>c&&a+c>b&&b+c>a) { p=(a+b+c)/2; s=sqrt(p*(p-a)*(p-b)*(p-c)); } printf("%.1f",s); re.

2021-12-28 01:07:44 398

原创 【林非白】 洛谷 P1425 小鱼的游泳时间

#include <stdio.h> int main() { int a,b,c,d; int h,min; scanf("%d%d%d%d",&a,&b,&c,&d); if(b>d) { h=c-a-1; min=60-b+d; } else { h=c-a; min=d-b; } printf("%d %d",h,min); return 0; }

2021-12-27 18:57:41 119

原创 [林非白】 洛谷 P5706 【深基2.例8】再分肥宅水

#include <stdio.h> int main() { float t; int n; scanf("%f%d",&t,&n); printf("%.3f\n%d",t/n,n*2); return 0; }

2021-12-27 18:41:30 154

原创 【林非白】洛谷 P5704 【深基2.例6】字母转换

#include <stdio.h> int main() { char a; scanf("%c",&a); printf("%c",a-32); return 0; }

2021-12-27 17:44:54 214

原创 【林非白】洛谷 P5703 【深基2.例5】苹果采购

刷题吧 #include <stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); printf("%d",a*b); return 0; }

2021-12-27 17:40:35 165

原创 【林非白】进制转换

目前掌握了二,八,十的转换 //进制转换--------%d 十进制 %o 八进制 %x 十六进制 #include <stdio.h> int main() { int a,b; //a是数字,b是进制 int arr[10]; //存储余数 int i=0; while(2==scanf("%d %d",&a,&b)) { i=0; //下标每一次都要从零输出 while(a!=0) { ..

2021-12-27 16:58:25 211

原创 来自一个编程new star的总结。

作为一个九月份初入编程的大一新生,虽说已经学了一段时间的C语言,但是能力以及知识的在我还远远不足,之前没有写blog的习惯,现在寒假在即,为了更好地学习,还是要系统地重新学习一遍,以下的内容,是我对之前四个月的学习弥补与总结 #include <stdio.h> int main() { printf("Hello ! Welcome to the world of Lin Bai!\n"); return 0; } Let's begin!!!!!!!!!!!! 2021.12

2021-12-19 15:28:22 641

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除