linesTime Limit: 5000/2500 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 787Accepted Submission(s): 194Problem Descrip...
分类:
其他好文 时间:
2014-12-01 12:48:41
阅读次数:
216
离散化 + 树状数组。 这些东西自己都是刚接触不久的,所以需要多写点题练练手。 题目描述: 一维坐标中有N条线段,其中有一个点上面覆盖的线段数是最多的,求该点上面的线段数目。 这道题和HDU1556特别相似,不过这道题数据比较大,所以要离散化预处理一下数据。 个人常用的离散化方法...
分类:
其他好文 时间:
2014-12-01 00:49:12
阅读次数:
214
题目链接http://acm.hdu.edu.cn/showproblem.php?pid=5124这题题目做的好悲催,比赛时题目意思不理解,也没有深究了,赛后又看了很久没有看懂,问了很多才搞懂,我有一种想哭的冲动,我一直把这题[x,y]这个线段看成了一个坐标,我想哭了,由于x,y坐标带来的惯性,,...
分类:
其他好文 时间:
2014-11-30 23:08:30
阅读次数:
282
点击打开链接
lines
Time Limit: 5000/2500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 453 Accepted Submission(s): 220
Problem Description
John h...
分类:
其他好文 时间:
2014-11-30 18:45:32
阅读次数:
169
lines
Time Limit: 5000/2500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 330 Accepted Submission(s): 155
Problem Description
John has several lines. Th...
分类:
其他好文 时间:
2014-11-30 11:30:01
阅读次数:
199
lines
Time Limit: 5000/2500 MS (Java/Others) Memory Limit: 32768/32768
K (Java/Others)
...
分类:
其他好文 时间:
2014-11-30 09:18:36
阅读次数:
233
Problem DescriptionJohn has several lines. The lines are covered on the X axis. Let A is a point which is covered by the most lines. John wants to kno...
分类:
其他好文 时间:
2014-11-30 00:25:29
阅读次数:
327
#!/usr/bin/env python
#Filename:readfile.py
codelist=[]
f=file('input.txt','r')
lines = f.readlines();
for i in range(len(lines)):
line=lines[i].strip('\n');
print line
codelist...
分类:
编程语言 时间:
2014-11-29 21:48:47
阅读次数:
279
Given n non-negative integers a1, a2,
..., an, where each represents a point at coordinate (i, ai). n vertical
lines are drawn such that the two endpoints of line i is at (i, ai) and (i,
0). Fin...
分类:
编程语言 时间:
2014-11-29 10:30:19
阅读次数:
179
Linear Technology's recently introduced LTC4300 chip buffers I2C clock and data lines to and from a hot-swappable card. This task is difficult because...
分类:
其他好文 时间:
2014-11-28 15:46:27
阅读次数:
325