随笔分类 - PAT
摘要:As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro
阅读全文
摘要:This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu
阅读全文
摘要:Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha
阅读全文
摘要:题目描述 输入描述: 输出描述: 输入例子: 输出例子: 版本一: 例版本一: 版本三: 笨死了,英语理解能力不好,其实就是监测每次的输入,当输入某种颜色的个数过半,则立马输出!
阅读全文
摘要:题目描述 输入描述: 输出描述: 输入例子: 输出例子: 解题思路: 版本一: 该版本的缺陷是,当出现相同数字时,无法在中序中确定谁是根节点! 版本二:
阅读全文
摘要:题目描述 输入描述: 输出描述: 输入例子: 输出例子:
阅读全文
摘要:题目描述 输入描述: 输出描述: 输入例子: 输出例子:
阅读全文
摘要:1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 //题目贼恶心,竟然没有说出A存在的规律!!!!! 7 //首先,必须要有PAT存在,且不能有其他字符 8 //其次P与T中间A的个数乘以P之前的个数==T之后的A的个数!!!!!!!!! 9 int main() { 10 ...
阅读全文