My Story 
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于
  • 友链
  •   
  •   

1085 PAT单位排行

PAT单位排行题目描述:每次 PAT 考试结束后,考试中心都会发布一个考生单位排行榜。本题就请你实现这个功能。 输入格式:输入第一行给出一个正整数 N(≤105),即考生人数。随后 N 行,每行按下列格式给出一个考生的信息: 准考证号 得分 学校 其中准考证号是由 6 个字符组成的字符串,其首字母表示考试的级别:B代表乙级,A代表甲级,T代表顶级;得分是 [0, 100] 区间内的整数;学校是由

1970-01-01
PAT刷题
c

1093 字符串A+B

字符串A+B题目描述:给定两个字符串 A 和 B,本题要求你输出 A+B,即两个字符串的并集。要求先输出 A,再输出 B,但重复的字符必须被剔除。 输入格式:输入在两行中分别给出 A 和 B,均为长度不超过 106的、由可见 ASCII 字符 (即码值为32~126)和空格组成的、由回车标识结束的非空字符串。 输出格式:在一行中输出题面要求的 A 和 B 的和。 输入样例:This is a sa

1970-01-01
PAT刷题
golang

1088 三人行

三人行题目描述:子曰:“三人行,必有我师焉。择其善者而从之,其不善者而改之。” 本题给定甲、乙、丙三个人的能力值关系为:甲的能力值确定是 2 位正整数;把甲的能力值的 2 个数字调换位置就是乙的能力值;甲乙两人能力差是丙的能力值的 X 倍;乙的能力值是丙的 Y 倍。请你指出谁比你强应“从之”,谁比你弱应“改之”。 输入格式:输入在一行中给出三个数,依次为:M(你自己的能力值)、X 和 Y。三个数字

1970-01-01
PAT刷题
golang

PAT题目合集

table th:first-of-type { width: 30%; } table th:nth-of-type(2) { width: 30%; } table th:nth-of-type(3) { width: 10%; } table th:nth-of-type(4) { width: 15%; table th:nth-of-type(5) {

1970-01-01

去PAT考试需要记忆的东西

1、使用map需要引入头using namespace std; 使用时定义map<char[6],struct Output> Map; 要使用string得导入开头 #include 2、使用strupr()来小写转大写,strlwr来大写转小写需要导入#include<string.h> 3、使用sort函数需要头文件:using namespace std;

1970-01-01

我为什么不用golang写PAT了

讲讲我为什么开始的时候要用go语言写算法后来又放弃

1970-01-01
PAT刷题

1034 Head of a Gang (30 分)

Head of a Gang题目描述:One way that the police finds the head of a gang is to check people’s phone calls. If there is a phone call between A and B, we say that A and B is related. The weight of a relation

1970-01-01
PAT刷题
c++

482. 合唱队形

所在模块:array

1970-01-01
剑指offer
c array

1026 Table Tennis (30 分)

Table Tennis题目描述:A table tennis club has N tables available to the public. The tables are numbered from 1 to N. For any pair of players, if there are some tables open when they arrive, they will be as

1970-01-01
PAT刷题
c++

1091 Acute Stroke (30 分)

Acute Stroke (30 分)题目描述:One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results of image analysis in which the core regions are identified in each MRI

1970-01-01
PAT刷题
c++
1…34567…59

搜索

Hexo Fluid
总访问量 次 总访客数 人
浙ICP备2022005138号-1  |  police-icon 浙ICP备2022005138号-2