摘要: Given any string of N (≥) characters, you are asked to form the characters into the shape of U. For example, helloworld can be printed as: h d e l l r 阅读全文
posted @ 2019-07-20 23:23 自由之翼Az 阅读(300) 评论(0) 推荐(0)
摘要: Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1 = { 11, 12, 13, 14 } is 1 阅读全文
posted @ 2019-07-20 22:58 自由之翼Az 阅读(209) 评论(0) 推荐(0)
摘要: Excel can sort records according to any column. Now you are supposed to imitate this function. Input Specification: Each input file contains one test 阅读全文
posted @ 2019-07-20 22:08 自由之翼Az 阅读(138) 评论(0) 推荐(0)
摘要: People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, wher 阅读全文
posted @ 2019-07-20 21:36 自由之翼Az 阅读(185) 评论(0) 推荐(0)