自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 问答 (1)
  • 收藏
  • 关注

原创 洛谷1421

#include<iostream>#include<iomanip>int main(){ using namespace std; float shell = 1.9; float money,yuan,jiao;int put; cin>>yuan>>jiao; jiao /= 10; money = yuan + jiao; put = money/shell; cout<<setprecision(1)<.

2021-11-18 10:24:11 105

原创 洛谷5708

#include<stdio.h>#include<math.h>int main(){ float a,b,c,area,k; scanf("%f %f %f",&a,&b,&c); k = 1.0/2*(a+b+c); sqrt(k*(k-a)*(k-b)*(k-c)); printf("%.1lf",sqrt(k*(k-a)*(k-b)*(k-c))); return 0; }

2021-11-18 10:23:41 87

原创 洛谷2433

#include<iostream>#include <iomanip> #include <cmath>// 填上你觉得需要的其他头文件using namespace std;int main() { int T; cin >> T; if (T == 1) { cout << "I love Luogu!"; } else if (T == 2) { cout <.

2021-11-18 10:23:09 195

原创 洛谷1425

#include<stdio.h>int main(){ int s1,s2,s3,f1,f2,f3; scanf("%d %d",&s1,&f1); scanf("%d %d",&s2,&f2); s3 = s2 - s1; f3 = f2 - f1; if (f3<0) { f3 += 60; s3 -= 1; } printf("%d %d",s3,f3); retu.

2021-11-18 10:22:24 88

原创 洛谷5706

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

2021-11-18 10:21:48 44

原创 洛谷5705

#include<stdio.h>int main(){ char a[100]; scanf("%s",&a); for(int i = 4;i>-1;i--) { printf("%c",a[i]); } return 0; }

2021-11-18 10:21:18 67

原创 洛谷5704

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

2021-11-18 10:20:40 57

原创 洛谷5703

#include<stdio.h>int main(){ long int a = 0; long int b = 0; long int c = 0; scanf("%d %d",&a,&b); c = a*b; printf("%d",c); }

2021-11-18 10:19:43 158

原创 洛谷1000

print(" ********")print(" ************")print(" ####....#.")print(" #..###.....##....")print(" ###.......###### ### ###")print(" ........... .

2021-11-18 10:18:58 126 1

原创 洛谷1001

#include<stdio.h>int main(){ long int a = 0; long int b = 0; long int c = 0; scanf("%d %d",&a,&b); c = a+b; printf("%d",c); }

2021-11-18 10:18:08 39

原创 pygame简单游戏 飞机大战

importpygameimportrandomimportmathfrompygame.constantsimportTIMER_RESOLUTIONpygame.init()score_value=0font=pygame.font.Font('freesansbold.ttf',32)textX=10textY=10defshow_score(x,y):score=font.render("S...

2021-10-16 09:16:48 1178 1

原创 判断奇偶数量(划水版)

#include<stdio.h>int main(){ int k,d=0,s=0; scanf("%d",&k); while(k != -1) { if(k % 2 >0) { d++; }else if(k % 2 == 0) { s++; } scanf("%d",&k); }...

2021-10-16 09:12:10 89

原创 简单的正序输出

#include<stdio.h>int main(){ int a; int mask = 1; int x; int t; scanf("%d",&a); x = a; while (x >9) { x /= 10; mask *= 10; } do { t = a/mask; pr...

2021-10-16 09:11:02 58

原创 简单的二分搜索

#include<stdio.h>int amount[] = {1,2,3,4,5,6,7,8,9};int search(int key,int amount[],int len){ int right,left,mid; int ret = -1; left = amount[0]; right = amount[8]; mid = (left+right)/2; while(left<right) { ...

2021-10-16 09:09:46 45

原创 结构体搜索

#include<stdio.h>int a[] = {15,25,35,45,55};char *names[] ={"we","that","her","him","me"};struct{ int a; char *names;}coins[]={ {15,"we"}, {25,"that"}, {35,"her"}, {45,"him"}, {55,"me"}}...

2021-10-16 09:08:10 67

原创 简单的搜索

#include<stdio.h>int number[] = {12,5,6,4,55,69,58};char *name[] = {"nn","pe","se","fe","at","wr","sff"};int search(int key,int a[],int len){ int ret = -1; for (int i = 0;i<len;i ++) { ret = -1; if (key ==...

2021-10-16 08:17:27 38

空空如也

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

TA关注的人

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