摘要: Codeforces 55D Beautiful Number a positive integer number is beautiful if and only if it is divisible by each of its nonzero digits. Input The first l 阅读全文
posted @ 2016-01-29 18:24 hxer 阅读(1021) 评论(0) 推荐(0) 编辑
摘要: 1026: [SCOI2009]windy数 Description windy定义了一种windy数。不含前导零且相邻两个数字之差至少为2的正整数被称为windy数。 windy想知道,在A和B之间,包括A和B,总共有多少个windy数? 100%的数据,满足 1 <= A <= B <= 200 阅读全文
posted @ 2016-01-29 10:31 hxer 阅读(281) 评论(0) 推荐(0) 编辑
摘要: hdu 3652 B-number Problem Description A wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string “13” 阅读全文
posted @ 2016-01-29 10:04 hxer 阅读(215) 评论(0) 推荐(0) 编辑
摘要: hdu 3555 Bomb 题意: 在1~N(1<=N<=2^63-1)范围内找出含有 ‘49’的数的个数; 与hdu 2089 不要62的区别:2089是找不不含 '4'和 '62'的区间范围内的数,此题是含有;正好相反,对于 "不要62"只是用第二位表示首位数字,这一题呢? 看转化:易知一定要要 阅读全文
posted @ 2016-01-29 09:34 hxer 阅读(152) 评论(0) 推荐(0) 编辑