上一页 1 ··· 9 10 11 12 13 14 15 下一页
摘要: Dungeon Master Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or m 阅读全文
posted @ 2017-07-15 19:02 thges 阅读(169) 评论(0) 推荐(0) 编辑
摘要: n的约数个数 题目:t次询问,每次给你一个数n,求在[1,n]内约数个数最多的数的约数个数 数据:对于100%的数据,t <= 500 , 1 <= n <= 1000000000000000000 思路:对前20个质数搜索,质数指数依次递减。 n的约数个数 题目:t次询问,每次给你一个数n,求在[ 阅读全文
posted @ 2017-07-15 16:31 thges 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 容器 queue 队列 定义 queue的定义需要两个参数,一个是元素类型,一个容器类型,元素类型是必要的,容器类型是可选的,默认为deque类型 基本方法 push(x) 入队,将x接到队列的末端 pop() 出队,弹出队列的第一个元素,注意,并不会返回被弹出元素的值 front() 访问队首元素 阅读全文
posted @ 2017-07-13 15:47 thges 阅读(241) 评论(0) 推荐(0) 编辑
摘要: Jessica's Reading Problem Description Jessica's a very lovely girl wooed by lots of boys. Recently she has a problem. The final exam is coming, yet sh 阅读全文
posted @ 2017-07-10 19:05 thges 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Tickets Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4393 Accepted Submission(s): 2236 Problem 阅读全文
posted @ 2017-07-08 16:55 thges 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 水题 发布时间: 2017年6月22日 19:15 最后更新: 2017年6月23日 20:10 时间限制: 1000ms 内存限制: 128M 描述 给一个数n,求0~n内有多少个数满足其二进制形式不存在相邻的1 比如 0,1,2是可以的,3不可以。 输入 多组输入,每组输入一个数。 输出 输出答 阅读全文
posted @ 2017-07-08 15:21 thges 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 01串 Stringsobits 题目背景 考虑排好序的N(N<=31)位二进制数。 题目描述 他们是排列好的,而且包含所有长度为N且这个二进制数中1的位数的个数小于等于L(L<=N)的数。 你的任务是输出第i(1<=i<=长度为N的二进制数的个数)小的(注:题目这里表述不清,实际是,从最小的往大的 阅读全文
posted @ 2017-07-04 15:46 thges 阅读(260) 评论(0) 推荐(0) 编辑
摘要: Sumsets Description Farmer John commanded his cows to search for different sets of numbers that sum to a given number. The cows use only numbers that 阅读全文
posted @ 2017-03-10 18:45 thges 阅读(181) 评论(0) 推荐(1) 编辑
摘要: C. Hidden Word time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Hidden Word time limit 阅读全文
posted @ 2017-03-08 21:30 thges 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 最大连续子序列 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 31021 Accepted Submission(s): 13922 Probl 阅读全文
posted @ 2017-03-07 23:09 thges 阅读(260) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 下一页