摘要: You are given n segments on a line. There are no ends of some segments that coincide. For each segment find the number of segments it contains. You ar 阅读全文
posted @ 2016-10-28 21:58 Gealo 阅读(391) 评论(0) 推荐(0) 编辑
摘要: Jimmy writes down the decimal representations of all natural numbers between and including m and n, (m ≤ n). How many zeroes will he write down? Input 阅读全文
posted @ 2016-10-28 15:34 Gealo 阅读(241) 评论(0) 推荐(0) 编辑
摘要: An integer is divisible by 3 if the sum of its digits is also divisible by 3. For example, 3702 is divisible by 3 and 12 (3+7+0+2) is also divisible b 阅读全文
posted @ 2016-10-28 15:17 Gealo 阅读(218) 评论(1) 推荐(0) 编辑
摘要: Problem Description A wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string "13" and can be divided 阅读全文
posted @ 2016-10-28 14:38 Gealo 阅读(190) 评论(0) 推荐(0) 编辑