![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
团体程序设计天梯赛-练习集(5分)
天宇灬辰
这个作者很懒,什么都没留下…
展开
-
L1-074 两小时学完C语言 (5 分)
#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("%d",a-b*c); return 0;}原创 2021-11-01 11:31:36 · 377 阅读 · 0 评论 -
L1-073 人与神 (5 分)
#include<stdio.h>int main(){ printf("To iterate is human, to recurse divine."); return 0;}原创 2021-11-01 11:29:50 · 126 阅读 · 0 评论 -
L1-066 猫是液体 (5 分)
#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("%d",a*b*c); return 0;}原创 2021-11-01 11:28:25 · 127 阅读 · 0 评论 -
L1-065 嫑废话上代码 (5 分)
#include<stdio.h>int main(){ printf("Talk is cheap. Show me the code."); }原创 2021-11-01 11:26:54 · 92 阅读 · 0 评论 -
L1-060 心理阴影面积 (5 分)
#include"stdio.h"int main(){ int a,b,s; scanf("%d%d",&a,&b); s=5000-50*(100-a)-50*b; printf("%d",s); return 0;}原创 2021-11-01 11:23:06 · 288 阅读 · 0 评论 -
L1-057 PTA使我精神焕发 (5 分)
#include"stdio.h"int main(){ printf("PTA shi3 wo3 jing1 shen2 huan4 fa1 !"); return 0;}原创 2021-11-01 11:21:31 · 64 阅读 · 0 评论 -
L1-052 2018我们要赢 (5 分)
#include"stdio.h"#include"stdlib.h"void main(){ printf("2018\n"); printf("wo3 men2 yao4 ying2 !"); system("pause");}原创 2021-11-01 11:19:34 · 117 阅读 · 0 评论 -
L1-051 打折 (5 分)
#include"stdio.h"#include"stdlib.h"void main(){ int y,z; double x; scanf("%d%d",&y,&z); x=y*z*0.1; printf("%.2f",x); system("pause");}原创 2021-11-01 11:17:38 · 104 阅读 · 0 评论 -
L1-045 宇宙无敌大招呼 (5 分)
#include<stdio.h>int main(){ char str[8]; scanf("%s",str); printf("Hello %s\n",str); return 0;}原创 2021-11-01 11:15:03 · 299 阅读 · 0 评论 -
L1-042 日期格式化 (5 分)
#include<stdio.h>int main(){ int y,m,d; scanf("%d-%d-%d",&m,&d,&y); printf("%d-%02d-%02d\n",y,m,d); return 0;}原创 2021-11-01 11:02:20 · 89 阅读 · 0 评论 -
L1-038 新世界 (5 分)
#include<stdio.h>int main(){ printf("Hello World\n"); printf("Hello New World\n"); return 0;}原创 2021-10-31 10:04:24 · 52 阅读 · 0 评论 -
L1-036 A乘以B (5 分)
#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d\n",a*b); return 0;}原创 2021-10-31 10:03:03 · 68 阅读 · 0 评论 -
L1-029 是不是太胖了 (5 分)
#include<stdio.h>int main(){ int h; scanf("%d",&h); printf("%.1f\n",(h-100)*0.9*2); return 0;}原创 2021-10-31 10:01:33 · 58 阅读 · 0 评论 -
L1-026 I Love GPLT (5 分)
#include<stdio.h>int main(){ char str[]={"I Love GPLT"}; int i; i=0; while(str[i]!='\0') { printf("%c\n",str[i]); i++; } return 0;}原创 2021-10-31 09:59:49 · 124 阅读 · 0 评论 -
L1-024 后天 (5 分)
#include<stdio.h>int main(){ int d; scanf("%d",&d); if(d<=5)printf("%d\n",(d+2)); else printf("%d\n",(d+2)%7); return 0;}原创 2021-10-31 09:58:09 · 84 阅读 · 0 评论 -
L1-021 重要的话说三遍 (5 分)
#include<stdio.h>int main(){ for(int i=0;i<3;i++) printf("I'm gonna WIN!\n"); return 0;}原创 2021-10-31 09:55:45 · 52 阅读 · 0 评论 -
L1-014 简单题 (5 分)
#include<stdio.h>int main(){ printf("This is a simple problem."); return 0;}原创 2021-10-31 09:53:45 · 49 阅读 · 0 评论 -
L1-012 计算指数 (5 分)
#include<stdio.h>int main(){ int n,s=1; scanf("%d",&n); if(n>0 && n<=10) for(int i=0;i<n;i++) s*=2; printf("2^%d = %d\n",n,s); return 0;}原创 2021-10-31 09:50:46 · 56 阅读 · 0 评论 -
L1-004 计算摄氏温度 (5 分)
#include <stdio.h>int main(){ int a,c; scanf("%d",&a); c=5*(a-32)/9; printf("Celsius = %d",c); return 0;}原创 2021-10-31 09:48:47 · 55 阅读 · 0 评论 -
L1-001 Hello World (5 分)
#include <stdio.h>#include <stdlib.h>int main(){ printf("Hello World!\n"); return 0;}原创 2021-10-31 09:44:13 · 51 阅读 · 0 评论