数据结构之容器
ACM__dongsheng
在校大学生
展开
-
hdu 5249 KPI
Problem Description你工作以后, KPI 就是你的全部了. 我开发了一个服务,取得了很大的知名度。数十亿的请求被推到一个大管道后同时服务从管头拉取请求。让我们来定义每个请求都有一个重要值。我的KPI是由当前管道内请求的重要值的中间值来计算。现在给你服务记录,有时我想知道当前管道内请求的重要值得中间值。Input有大约100组数据。每组数据第一行有一个n(1≤n≤10000),代表服原创 2016-03-23 22:27:35 · 490 阅读 · 0 评论 -
hdu5437Alisha’s Party
Problem Description Princess Alisha invites her friends to come to her birthday party. Each of her friends will bring a gift of some value v, and all of them will come at a different time. Because the原创 2016-04-08 17:26:52 · 371 阅读 · 0 评论 -
hdu 5676 ztr loves lucky numbers
Problem Description ztr loves lucky numbers. Everybody knows that positive integers are lucky if their decimal representation doesn’t contain digits other than 4 and 7. For example, numbers 47, 744, 4原创 2016-05-08 23:55:48 · 444 阅读 · 0 评论 -
单独的数字
给定一个数组,除了一个数出现1次之外,其余数都出现3次。找出出现一次的数。如:{1, 2, 1, 2, 1, 2, 7}, 找出7.格式:第一行输入一个数n,代表数组的长度,接下来一行输入数组A[n],(输入的数组必须满足问题描述的要求),最后输出只出现一次的数。要求:你的算法只能是线性时间的复杂度,并且不能使用额外的空间哦~ 样例输入4 0 0 0 5样例输出5#include<iostrea原创 2016-06-19 20:37:57 · 421 阅读 · 0 评论