摘要: Problem A. Huge Numbers Problem Professor Shekhu has another problem for Akki today. He has given him three positive integers A, N and P and wants him 阅读全文
posted @ 2017-10-23 20:47 hxidkd 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 题目1 : 集合计数 题意 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 给定一个包含N个整数的集合S={A1, A2, ... AN},以及一个给定的整数K,请计算有多少个S的子集满足其中的最大值与最小值的和小于等于K。 例如对于S={4, 2, 5, 8}以及K= 阅读全文
posted @ 2017-08-07 21:23 hxidkd 阅读(374) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-07-12 17:25 hxidkd 阅读(13) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-06-13 00:09 hxidkd 阅读(2) 评论(0) 推荐(0) 编辑
摘要: google kickstart 2017 round B Problem A. Math Encoder Problem Professor Math is working on a secret project and is facing a challenge where a list of 阅读全文
posted @ 2017-05-08 16:52 hxidkd 阅读(475) 评论(0) 推荐(0) 编辑
摘要: poj 2785 4 Values whose Sum is 0 折半枚举, 求四个和为0, 先将两个数组的和枚举保存然后排序(n2+ nlogn), 然后枚举另两个数组判断其和是否在前面的数组里(二分查找 n2log n). #include <iostream> #include <cstdio 阅读全文
posted @ 2017-04-05 22:27 hxidkd 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 恍惚之间,2016已经过去了。回想起来,2016过得很漫长又很短暂。不开心的日子很多,煎熬很漫长。想到自己的收获时,又觉得时间过得那么快,虚度了光阴。无论如何,还是好好总结一波,争取2017有所进步。 ## 1月与2月 1月份基本在期盼着回家中虚度,几乎啥也没干,2月份在家没有网,也没带书回去,每天 阅读全文
posted @ 2017-01-03 00:06 hxidkd 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 3 Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. Examples: Give 阅读全文
posted @ 2016-12-21 10:36 hxidkd 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wo 阅读全文
posted @ 2016-12-01 23:16 hxidkd 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 牛客网上的题 1 比较重量 小明陪小红去看钻石,他们从一堆钻石中随机抽取两颗并比较她们的重量。这些钻石的重量各不相同。在他们们比较了一段时间后,它们看中了两颗钻石g1和g2。现在请你根据之前比较的信息判断这两颗钻石的哪颗更重。 给定两颗钻石的编号g1,g2,编号从1开始,同时给定关系数组vector 阅读全文
posted @ 2016-11-29 11:28 hxidkd 阅读(354) 评论(0) 推荐(0) 编辑