Taitres
Taitres
全部文章
题解
项目(1)
归档
标签
去牛客网
登录
/
注册
Taitres的博客
光辉与阴暗,后面有更大的世界
全部文章
/ 题解
(共26篇)
【PAT B1006】换个格式输出整数(C语言)
#include <stdio.h> int main() { int x,b,s,g,i=1; scanf("%d", &x); b = x / 100; s = x / 10 % 10; g = x % 10; ...
C语言
题解
PAT
简单模拟
2021-07-16
0
460
【PAT B1005】继续(3n+1)猜想(C语言)
#include <stdio.h> void BubbleSort(int a[], int len){ int i, j, temp; for (j = 0; j < len - 1; j++){ for (i = 0; i < len...
C语言
题解
PAT
简单模拟
2021-07-15
0
618
【PAT B1004】成绩排名(C语言)
#include <stdio.h> #include <stdlib.h> typedef struct student { char Name[11]; char Id[11]; int Score; }Stu; int main() { ...
C语言
题解
PAT
简单模拟
2021-07-14
0
420
【PAT B1003】我要通过!(C语言)
#include <stdio.h> int main() { int p, a, t; p = 'P'; a = 'A'; t = 'T'; int flag[10] = {0};//判断是否有PAT其他的字母 int count[10...
C语言
题解
PAT
简单模拟
2021-07-12
0
552
【PAT B1002】 写一个数(C语言)
#include <stdio.h> int main() { char a[100] = {'\0'}; int sum=0,ge, shi, bai,i=0; char Num[10][5] = { "ling","yi&quo...
PAT
C语言
题解
简单模拟
2021-07-03
0
495
叠筐
1.代码实现 #include <iostream> #include <cmath> #include<string> using namespace std; char pic[6][6]; char element[3000][3000];//重复的基本图...
C语言
题解
简单模拟
2021-05-11
0
579
Day of Week
1.代码实现 #include<iostream> #include<cstdio> #include <cstring> using namespace std; bool Isleapyear(int y){ return y%4==0&&...
C语言
题解
简单模拟
2021-05-11
0
537
Hello World for U
1.代码实现 #include<iostream> #include<cstdio> using namespace std; int main() { char str[81]; while(scanf("%s",&str)!=EOF){ ...
C语言
题解
简单模拟
2021-05-11
16
698
Repeater
1.题目分析 输入:要求第一行为N,使基本图形为N*N(N只能是3,4,5),第二行为基本图形,第三行为重复的比例级别。 用一个二维数组来存储基本图形,之后遍历图形,level从0开始,遇到字符就用基本图形去填充结果,遇到空格就用len*len个空格(len与=n的level次方)去填充,循环一次更...
C语言
题解
简单模拟
2021-05-11
3
923
【PAT B1046】划拳(C语言)
代码实现 #include<stdio.h> int main(){ int aout,aans,bout,bans,n,a=0,b=0; scanf("%d",&n); while(n--){ scanf("%d%d%d%d",&...
PAT
C语言
题解
简单模拟
2020-05-30
0
572
首页
上一页
1
2
3
下一页
末页