摘要: The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input n 阅读全文
posted @ 2022-01-03 21:19 勇往直前的力量 阅读(39) 评论(0) 推荐(0)
摘要: This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is filled in from the fi 阅读全文
posted @ 2022-01-03 20:40 勇往直前的力量 阅读(33) 评论(0) 推荐(0)
摘要: Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For example, given the sequence {0.1, 0.2, 0.3, 0.4}, we h 阅读全文
posted @ 2022-01-03 17:19 勇往直前的力量 阅读(87) 评论(0) 推荐(0)
摘要: Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of b 阅读全文
posted @ 2022-01-03 11:37 勇往直前的力量 阅读(39) 评论(0) 推荐(0)
摘要: Given an integer with no more than 9 digits, you are supposed to read it in the traditional Chinese way. Output "Fu" first if it is negative. For exam 阅读全文
posted @ 2022-01-03 09:55 勇往直前的力量 阅读(48) 评论(0) 推荐(0)