PAT
PAT竞赛中的题目题解
lvonge
一只菜鸡
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PAT B1009 说反话(使用stringstream解决)
原题目描述为: 给定一句英语,要求你编写程序,将句中所有单词的顺序颠倒输出。 输入格式: 测试输入包含一个测试用例,在一行内给出总长度不超过 80 的字符串。字符串由若干单词和若干空格组成,其中单词是由英文字母(大小写有区分)组成的字符串,单词之间用 1 个空格分开,输入保证句子末尾没有多余的空格。 输出格式: 每个测试用例的输出占一行,输出倒序后的句子。 输入样例: Hello World Here I Come 输出样例: Come I Here World Hello 题目思路: 我看了很多大佬的代码原创 2020-05-28 09:25:31 · 224 阅读 · 0 评论 -
PAT A1010 Radix(细节很多的一道题)
原题目描述为: Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a binary number. Now for any pair of positive integers N1 and N2 , your task is to find the radi原创 2020-05-08 23:08:09 · 288 阅读 · 0 评论
分享