自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 环形加密(基础) (10 分) - PTA

#include <stdio.h>int main(){ char m; int n, x; scanf("%c %d", &m, &n); n %= 26; if (97 <= m + n && m + n <= 122) { printf("%c", m + n); } else if (97 > m + n) { printf("%c", m + n + 26); } else if (122...

2021-12-11 19:17:42 4996

原创 花生换核桃 (10 分) - PTA

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

2021-12-11 19:16:40 4165

原创 数学函数调用 (10 分) - PTA

#include <stdio.h>#include <math.h>int main(){ double a, b; b = 0; scanf("%lf", &a); b += sin(a); b -= cos(a / 2); b += sqrt(a + 168.0); b = fabs(b); b = log10(b); printf("%.4f", b); return 0...

2021-12-11 19:13:57 1063

原创 鸡兔同笼 (100 分) - PTA

#include <stdio.h>int main(){ int a, b; int m, n; scanf("%d %d", &a, &b); m = (b - 2 * a) / 2; n = a - m; printf("%d %d", n, m); return 0;}

2021-12-11 19:13:24 900

原创 比赛的评分规则 (10 分) - PTA

#include <stdio.h>int main(){ int a, b, c, d, e; int sum; float sum1; scanf("%d %d %d %d %d",&a,&b,&c,&d,&e); sum = b + c + d; sum1 = (float)sum / 3; printf("%.2f", sum1);}

2021-12-11 19:12:33 376

原创 苹果装盘 (100 分) - PTA

#include <stdio.h>int main(){ int N; scanf("%d", &N); if (N % 2 == 0) { printf("%d", N / 2); } else { printf("%d", N / 2 + 1); } return 0;}

2021-12-11 19:10:11 832

原创 计算多项式的值 (10 分) - PTA

#include <stdio.h>int main (){ double a,b,c,d,x; double y; double e,f,g; scanf("%lf %lf %lf %lf %lf",&x,&a,&b,&c,&d); e = a * x * x * x; f = b * x * x; g = c * x; y = e+f+g+d; printf("%....

2021-12-08 22:04:13 642

原创 计算摄氏温度 (10 分) - PTA

#include <stdio.h>int main(){ int F, C; scanf("%d", &F); C = 5 * (F - 32) / 9; printf("Celsius = %d", C); return 0;}

2021-12-08 22:02:44 375

原创 爱迪生的名言(*) (5 分) - PTA

#include <stdio.h>int main (){ printf("Thomas Edison said, \"Genius is 1"); printf("%c",37); printf(" inspiration and 99"); printf("%c",37); printf(" perspiration!\""); return 0;}

2021-12-08 22:01:51 978

原创 圆球的体积 (10 分) - PTA

#include <stdio.h>#define PI 3.1415926535897932384626int main(){ double R = 0; scanf("%lf", &R); printf("%.2lf", 4 * PI * R * R * R / 3); return 0;}

2021-12-08 22:01:16 1138

原创 爱音乐 (5 分) - PTA

#include<stdio.h>int main(){ printf("%c%c%c", 73, 3, 14); return 0;}

2021-12-08 22:00:26 554 1

原创 将一个大写英文字母转换为小写输出 (12 分) - PTA

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

2021-12-08 21:59:23 688

空空如也

空空如也

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

TA关注的人

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