1041 Be Unique(20分)--PAT甲级

Be Unique 题目 Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1,104].

- 阅读全文 -

1001 A+B Format(20分)--PAT甲级

A+B Format 题目 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 than four digits). - 时间限制: 400 ms

- 阅读全文 -

1001 害死人不偿命的(3n+1)猜想(15分)--PAT乙级

害死人不偿命的(3n+1)猜想 题目 卡拉兹(Callatz)猜想: 对任何一个正整数 n,如果它是偶数,那么把它砍掉一半;如果它是奇数,那么把 (3n+1) 砍掉一半。这样一直反复砍下去,最后一定在某一步得到 n=1

- 阅读全文 -

圈地运动-360公司笔试题

圈地运动 题目: 圈地运动,就是用很多木棍摆在地上组成一个面积大于0的多边形~ 小明喜欢圈地运动,于是他需要去小红店里面买一些木棍,期望圈出一块地来。小红想挑战一下小明,所以给小明设置

- 阅读全文 -

城市修建-360公司笔试题

城市修建 题目: 有一个城市需要修建,给你N个民居的坐标X,Y,问把这么多民居全都包进城市的话,城市所需最小面积是多少(注意,城市为平行于坐标轴的正方形) - 时间限制:1s - 空间限制:65536K

- 阅读全文 -

单词逆序-瓜子二手车笔试题

单词逆序 题目: 对于一个字符串,请设计一个算法,只在字符串的单词间做逆序调整,也就是说,字符串由一些由空格分隔的部分组成,你需要将这些部分逆序。

- 阅读全文 -