- 博客(20)
- 收藏
- 关注
原创 ACM退役贴:旅程
退役的这天,训练室依旧挤满了人,洒着温暖的纯白色灯光,就像两年前初来时所见的那样。电脑前的那些人敲着代码,思考着我曾经思考的问题,走在我曾经走过的路上。 ——题记 刚入学就知道了ACM集训队的存在,也报名了十一培训,但是听说培训后有场比赛,只有前20名的新生能够进队,于是就直接打消了进队的念头,参加培训也是想学点C语言,顺便碰碰运气。记得第一天上午的培训是刘学长讲的,除了C语言基础之外,刘学长还通...
2018-11-02 21:24:36 786
原创 【codeforces 85D】Sum of Medians 线段树单点更新+离散化
题目链接:http://codeforces.com/contest/85/problem/D 题目大意:有n次操作,操作分3种类型,add x、del x、sum。 add x:向数组中插入数字x,保证插入之前数组中不存在x。 del x:从数组中删除数字x,保证删除之前数组中一定存在x。 sum:将数组从小到大排序后,计算所有第i%5==3(也就是3、8、13、18这样的位置)位的数字...
2018-07-29 21:38:20 193
原创 【codeforces 19D】Points 线段树+离散化+set
D. Points time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Pete and Bob invented a new interesting game. Bob takes a sheet of pape...
2018-07-28 21:18:40 209
原创 【HDU 1828】Picture 线段树扫描线
Picture Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 6289 Accepted Submission(s): 2935 Problem Description A number of rectangular p...
2018-07-17 13:48:25 223
原创 【HDU 1542】Atlantis 线段树扫描线(附代码的详细解释)
AtlantisTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 17354 Accepted Submission(s): 7051Problem Description There are several ancient Greek...
2018-07-15 14:34:52 281
原创 【codeforces 96B】Lucky Numbers (easy) DFS
Petya 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 are lucky and 5, ...
2018-03-23 21:25:49 531
原创 【HDU 2069】Coin Change 暴力枚举法
Coin Change Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 18669 Accepted Submission(s): 6460 Problem Description Suppose there
2017-01-20 11:02:43 348
原创 【HDU 2064】汉诺塔III
汉诺塔III Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 16089 Accepted Submission(s): 7494 Problem Description 约19世纪末,在欧州的商店中出售一种
2017-01-20 10:08:09 211
原创 【HDU 2050】折线分割平面
折线分割平面 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 28300 Accepted Submission(s): 19200 Problem Description 我们看到过很多直线分割平面的题目,
2017-01-19 10:04:19 240
原创 【HDU 2039】三角形 水
三角形 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 83846 Accepted Submission(s): 27785 Problem Description 给定三条边,请你判断一下能不能组成一个三
2017-01-18 13:09:52 195
原创 【HDU 2037】今年暑假不AC 贪心
今年暑假不AC Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 52502 Accepted Submission(s): 28251 Problem Description “今年暑假不AC?” “是的。
2017-01-18 11:51:47 263
原创 【HDU 2036】改革春风吹满地 求多边形面积(模板)
改革春风吹满地 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 32862 Accepted Submission(s): 16935 Problem Description “ 改革春风吹满地, 不会AC
2017-01-17 10:14:51 200
原创 【HDU 2034】人见人爱A-B 水
人见人爱A-B Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 76507 Accepted Submission(s): 21319 Problem Description 参加过上个月月赛的同学一定还记得
2017-01-17 09:06:25 370
原创 【HDU 1020】Encoding 水
Encoding Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 43139 Accepted Submission(s): 19057 Problem Description Given a string
2017-01-15 08:56:25 240
原创 【HDU 1408】盐水的故事 水
盐水的故事 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 18666 Accepted Submission(s): 4641 Problem Description 挂盐水的时候,如果滴起来有规律,先是滴一滴,停
2017-01-14 22:48:41 256
原创 【HDU 2023】求平均成绩 水
求平均成绩 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 116413 Accepted Submission(s): 26694 Problem Description 假设一个班有n(n
2017-01-14 20:46:28 301
原创 【HDU 2007】平方和与立方和 水
平方和与立方和 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 161506 Accepted Submission(s): 51340 Problem Description 给定一段连续的整数,求出他们中
2017-01-13 16:45:43 176
原创 【HDU 2003】求绝对值 水
求绝对值 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 126359 Accepted Submission(s): 61573 Problem Description 求实数的绝对值。 Inp
2017-01-13 15:46:15 219
原创 【HDU 2001】计算两点间的距离 水
计算两点间的距离 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 199820 Accepted Submission(s): 69644 Problem Description 输入两点坐标(X1,Y1),
2017-01-13 15:13:45 291
原创 【HDU 3555】Bomb 数位dp模板
Bomb Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others) Total Submission(s): 16611 Accepted Submission(s): 6082 Problem Description The counter-terrorist
2017-01-12 13:34:01 435
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人