随笔分类 -  数位dp

摘要:Description 正如你所知,奶牛们没有手指以至于不能玩“石头剪刀布”来任意地决定例如谁先挤奶的顺序。她们甚至也不能通过仍硬币的方式。 所以她们通过"round number"竞赛的方式。第一头牛选取一个整数,小于20亿。第二头牛也这样选取一个整数。如果这两个数都是 "round number 阅读全文
posted @ 2016-03-04 22:25 chenyushuo 阅读(378) 评论(0) 推荐(0)
摘要:Let's consider the 32 bit representation of all integers i from m up to n inclusive (m ≤ i ≤ n; m × n ≥ 0, -2^31 ≤ m ≤ n ≤ 2^31-1). Note that a negati 阅读全文
posted @ 2016-03-03 12:09 chenyushuo 阅读(247) 评论(0) 推荐(0)
摘要:Description Create a code to determine the amount of integers, lying in the set [ X; Y] and being a sum of exactly K different integer degrees ofB. Ex 阅读全文
posted @ 2016-03-03 10:10 chenyushuo 阅读(565) 评论(0) 推荐(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-03-03 09:05 chenyushuo 阅读(182) 评论(0) 推荐(0)
摘要:Problem Description 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。不吉利的数字为所有含有4或62的号码。例如 阅读全文
posted @ 2016-03-02 20:17 chenyushuo 阅读(272) 评论(0) 推荐(0)