上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 90 下一页
摘要: John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weibo -- that is, he would select winners from 阅读全文
posted @ 2019-02-28 21:59 王清河 阅读(143) 评论(0) 推荐(0)
摘要: Given some segments of rope, you are supposed to chain them into one rope. Each time you may only fold two segments into loops and chain them into one 阅读全文
posted @ 2019-02-28 21:59 王清河 阅读(244) 评论(0) 推荐(0)
摘要: "Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can 阅读全文
posted @ 2019-02-28 21:58 王清河 阅读(227) 评论(0) 推荐(0)
摘要: "Let's C" is a popular and fun programming contest hosted by the College of Computer Science and Technology, Zhejiang University. Since the idea of th 阅读全文
posted @ 2019-02-28 21:57 王清河 阅读(330) 评论(0) 推荐(0)
摘要: Two integers are called "friend numbers" if they share the same sum of their digits, and the sum is their "friend ID". For example, 123 and 51 are fri 阅读全文
posted @ 2019-02-28 21:57 王清河 阅读(234) 评论(0) 推荐(0)
摘要: British astronomer Eddington liked to ride a bike. It is said that in order to show off his skill, he has even defined an "Eddington number", E -- tha 阅读全文
posted @ 2019-02-27 22:32 王清河 阅读(462) 评论(0) 推荐(0)
摘要: Formation is very important when taking a group photo. Given the rules of forming K rows with N people as the following: The number of people in each 阅读全文
posted @ 2019-02-27 22:31 王清河 阅读(351) 评论(0) 推荐(0)
摘要: On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear rep 阅读全文
posted @ 2019-02-27 22:31 王清河 阅读(407) 评论(0) 推荐(0)
摘要: 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 @ 2019-02-27 22:30 王清河 阅读(146) 评论(0) 推荐(0)
摘要: C++中支持的字符串处理的函数库叫String,但它不是STL,却与STL操作十分相似。 1.声明: 使用String之前要有以下头文件 声明方法 初始化string对象 直接初始化:利用小括号完成; 拷贝初始化:利用等号完成拷贝过程(减少使用); 以下是运行结果 输入字符串方法 如果想反复读入字符 阅读全文
posted @ 2019-02-26 23:00 王清河 阅读(310) 评论(0) 推荐(0)
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 90 下一页