万能的翔王大人
万能的翔王大人
全部文章
分类
C++菜鸡-冲冲冲(1)
PAT(4)
未归档(105)
归档
标签
去牛客网
登录
/
注册
啊啊啊
没什么可说的
全部文章
(共110篇)
【PAT】B1057 数零壹(20 分)
简单题,简单字符串处理加简单数学进制转换 #include<stdio.h> #include<string.h> #include<ctype.h> int main(){ char str[100100]; scanf("%[^\n...
2018-08-18
0
436
【PAT】B1058 选择题(20 分)
这道题的逻辑怪复杂的,写起来蛮费时间的 结构体中要储存的信息多,整体不难,信息量大,容易把人搞蒙 #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; stru...
2018-08-18
0
500
【PAT】B1059 C语言竞赛(20 分)
这个题也是个逻辑问题 此题用我这种方式很复杂,应该用map 用两个分别储存成绩,已领过奖的人, #include<stdio.h> #include<math.h> int arr[10010]={0}; bool ischeck[10010]; bool isprime(...
2018-08-18
0
415
【PAT】B1060 爱丁顿数(25 分)
逻辑问题,对我来说还是挺有难度的,一开始想不通 我输入数据并以数据为下标,数据出现次数为内容存储 然后从后遍历计算所有大于当前下标的元素出现的次数 最后遍历一遍确定是否为爱丁顿数,如果大于当前已经找到的就替换,最后输出最大值 #include<stdio.h> #include<...
2018-08-18
0
470
【PAT】B1061 判断题(15 分)
简单逻辑题, #include<stdio.h> #include<algorithm> using namespace std; int main(){ int N,M;//输入在第一行给出两个不超过 100 的正整数 N 和 M,分别是学生人数和判断题数量 ...
2018-08-18
0
333
【PAT】B1062 最简分数(20 分)
如果了解分数运算,本题很简单。我有对分数知识进行总结 分数四则运算 #include<stdio.h> #include<algorithm> using namespace std; int gongyue(int a,int b){ return !b?a:go...
2018-08-18
0
427
【PAT】B1063 计算谱半径(20 分)
水题,没有难点 #include<stdio.h> #include<algorithm> #include<math.h> using namespace std; int main(){ int N;scanf("%d",&am...
2018-08-18
0
360
【PAT】B1064 朋友数(20 分)
以前写的,逻辑不好,过后再改 #include<stdio.h> #include<algorithm> #include<math.h> using namespace std; bool cmp(int a,int b){ return a<b...
2018-08-18
0
377
【PAT】B1065 单身狗(25 分)
#include<stdio.h> #include<algorithm> #include<math.h> using namespace std; int canzhao[100000],canzhao2[100000],laike[10005]; //分别存...
2018-08-18
0
483
【PAT】B1066 图像过滤(15 分)
注意输出是占三位,其他的挺水 #include<stdio.h> #include<algorithm> using namespace std; int main(){ int M,N;scanf("%d %d",&M,&N...
2018-08-18
0
372
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页