上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
摘要: You are given the sequence of all K-digit binary numbers: 0, 1,..., 2K-1. You need to fully partition the sequence into M chunks. Each chunk must be a 阅读全文
posted @ 2016-03-03 19:43 chenyushuo 阅读(416) 评论(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 阅读(218) 评论(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 阅读(554) 评论(0) 推荐(0) 编辑
摘要: Description windy定义了一种windy数。不含前导零且相邻两个数字之差至少为2的正整数被称为windy数。 windy想知道,在A和B之间,包括A和B,总共有多少个windy数? Input 包含两个整数,A B。 Output 一个整数。 Sample Input 【输入样例一】 阅读全文
posted @ 2016-03-03 09:36 chenyushuo 阅读(211) 评论(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 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Problem Description 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。不吉利的数字为所有含有4或62的号码。例如 阅读全文
posted @ 2016-03-02 20:17 chenyushuo 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 2959: 长跑 Time Limit: 10 Sec Memory Limit: 256 MBSubmit: 194 Solved: 114[Submit][Status][Discuss] Description 某校开展了同学们喜闻乐见的阳光长跑活动。为了能“为祖国健康工作五十年”,同学们纷纷 阅读全文
posted @ 2016-03-02 15:44 chenyushuo 阅读(456) 评论(0) 推荐(0) 编辑
摘要: Description You are given a tree (an acyclic undirected connected graph) with n nodes. The tree nodes are numbered from 1 to n. Each node has a color, 阅读全文
posted @ 2016-02-29 20:55 chenyushuo 阅读(785) 评论(0) 推荐(0) 编辑
摘要: Description You are given a tree (an acyclic undirected connected graph) with n nodes. The tree nodes are numbered from 1 to n. Each node has a color, 阅读全文
posted @ 2016-02-29 20:52 chenyushuo 阅读(1190) 评论(0) 推荐(0) 编辑
摘要: Description N个点M条边的无向图,询问保留图中编号在[l,r]的边的时候图中的联通块个数。 Input 第一行四个整数N、M、K、type,代表点数、边数、询问数以及询问是否加密。接下来M行,代表图中的每条边。接下来K行,每行两个整数L、R代表一组询问。对于type=0的测试点,读入的L 阅读全文
posted @ 2016-02-28 17:21 chenyushuo 阅读(486) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页