- 博客(21)
- 收藏
- 关注
原创 2021-10-31
根据公式 N - K*M可计算出还没看完的字数#include<stdio.h>int main(){ int N,K,M; scanf("%d %d %d",&N,&K,&M); printf("%d", N - K*M); return 0;}
2021-10-31 00:49:59
64
原创 2021-10-31
直接输出To iterate is human, to recurse divine.#include<stdio.h>int main(){ printf("To iterate is human, to recurse divine."); return 0;}
2021-10-31 00:44:16
67
原创 2021-10-31
根据V=I*m*n输出V#include<stdio.h>int main(){ int l,m,n,v; scanf("%d %d %d", &l,&m,&n); v=l*m*n; printf("%d", v); return 0; }
2021-10-31 00:42:17
54
原创 2021-10-31
直接输出Talk is cheap. Show me the code.#include<stdio.h>int main(){ printf("Talk is cheap. Show me the code."); return 0;}
2021-10-31 00:39:28
62
原创 2021-10-31
根据s=(x-y)*100/2输出终值#include<stdio.h>int main(){ int x,y; scanf("%d %d", &x, &y); printf("%d",(x-y)*100/2); return 0;}
2021-10-31 00:37:17
78
原创 2021-10-31
直接输出PTA shi3 wo3 jing1 shen2 huan4 fa1 !#include<stdio.h>int main(){ printf("PTA shi3 wo3 jing1 shen2 huan4 fa1 !"); return 0;}
2021-10-31 00:27:53
43
原创 2021-10-30
在第一行中输出:“2018”;第二行中输出:“wo3 men2 yao4 ying2 !”。#include<stdio.h>int main(){ printf("2018\nwo3 men2 yao4 ying2 !"); return 0;}
2021-10-31 00:10:57
52
原创 2021-10-30
输入两个整数,分别赋给price和discount,输出折扣价,并保留两位小数#include<stdio.h>int main(){ int price,discount; scanf("%d %d", &price, &discount); printf("%.2f", price*discount*0.1); return 0; }...
2021-10-30 20:15:11
52
原创 2021-10-30
用char定义一个函数表示任意星球#include<stdio.h>int main(){ char str[8]; gets(str); printf("Hello %s\n",str); return 0;}
2021-10-30 13:55:55
50
原创 2021-10-30
输入原形式,输出给定形式#include<stdio.h>int main(){ int month, day, year; scanf("%d-%d-%d",&month, &day, &year); printf("%04d-%02d-%02d", year, month, day); return 0;}
2021-10-30 13:44:50
36
原创 2021-10-30
直接输出型#include<stdio.h>int main(){ printf("Hello World\nHello New World\n"); return 0;}
2021-10-30 13:40:37
44
原创 2021-10-30
用int 赋值AB,用scanf定义AB的范围#include<stdio.h>int main(){ int A,B; scanf("%d %d",&A,&B); printf("%d\n",A*B); return 0;}
2021-10-30 13:37:25
37
原创 2021-10-30
用Int赋值tall 根据公式(tall - 100) * 0.9 * 2计算最后输出#include <stdio.h>int main(){ int tall;scanf("%d", &tall);printf("%.1f", (tall - 100) * 0.9 * 2);return 0;}
2021-10-30 13:31:30
43
原创 2021-10-30
换行输出#include<stdio.h>int main(){ printf("I\n \nL\no\nv\ne\n \nG\nP\nL\nT\n"); return 0;}
2021-10-30 13:27:19
38
原创 2021-10-30
用int 给DN赋值N=D+2;用if条件语句限定N<=7,最后输出int main(){ int D,N; scanf("%d",&D); N=D+2; if (N>7) N=N-7; printf("%d",N); return 0; }
2021-10-30 13:23:25
36
原创 2021-10-30
Hello World!型的直接输出#include<stdio.h>int main(){ printf("I'm gonna WIN!\nI'm gonna WIN!\nI'm gonna WIN!\n"); return 0;}
2021-10-30 13:12:30
37
原创 2021-10-30
根据题干直接输出This is a simple problem.#include<stdio.h>int main(){ printf("This is a simple problem."); return 0;}
2021-10-30 00:03:19
64
原创 2021-10-29
利用int 定义 a,b,根据 b=pow(2,a) 输出2^n.#include<stdio.h>#include<math.h>int main(){ int a,b; scanf("%d",&a); b=pow(2,a); printf("2^%d = %d\n",a,b); return 0; }
2021-10-29 23:57:42
35
原创 2021-10-29
用循环语句 switch case 输出1-10,的读音#include<stdio.h>int main(void){ char a[100]; int i; gets(a); for(i=0;a[i];i++){ switch(a[i]){ case '-':printf("fu");break; case '1':printf("yi");break; case '2':printf("er");break; case ...
2021-10-29 23:47:08
36
原创 2021-10-29
用 int 给c,f 赋值,再用c=5*(f-32)/9公式计算,最后用printf 输出;#include<stdio.h>int main(){ int c; int f; scanf("%d",&f); c=5*(f-32)/9; printf("Celsius = %d",c); return 0;}
2021-10-29 23:32:09
33
原创 2021-10-29
直接用printf输出Hello world!#include<stdio.h>int main(){ printf("Hello World!"); return 0;}
2021-10-29 22:58:11
40
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人