Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 28416 Accepted: 10966 Description You are given n closed, integer intervals [ai, bi] and n ...
分类:
其他好文 时间:
2018-03-03 12:22:59
阅读次数:
180
Everyone wants to be successful. Today I would like to share three simple key points of success. Number one is: Know what you are doing. Number two is ...
分类:
其他好文 时间:
2018-03-03 00:36:03
阅读次数:
202
D Decrementing Time limit : 2sec / Memory limit : 256MB Score : 1000 points Problem Statement There are N integers written on a blackboard. The i th i ...
分类:
其他好文 时间:
2018-02-28 23:01:54
阅读次数:
193
F Yes or No Time limit : 2sec / Memory limit : 256MB Score : 2000 points Problem Statement You are participating in a quiz with N + M questions and Ye ...
分类:
其他好文 时间:
2018-02-27 17:43:42
阅读次数:
178
传送门 题目大意 给你n和d还有n个数,计算最少删除几个点可以是最大点与最小点之差小于等于d 分析 先对所有点排序,枚举每一个点ai到ai+d中有几个点,答案即n-其中最大的值 代码 #include<iostream>#include<cstdio>#include<cstring>#includ ...
分类:
其他好文 时间:
2018-02-25 20:34:01
阅读次数:
213
从这里开始 题目列表 小结 Problem A Points on the line Problem B Our Tanya is Crying Out Loud Problem C Phone Numbers Problem D Alena And The Heater Problem E Cas ...
分类:
其他好文 时间:
2018-02-25 15:54:23
阅读次数:
233
Codeforces Round 466 (Div. 2) 题解 A.Points on the line 题目大意: 给你一个数列,定义数列的权值为最大值减去最小值,问最少删除几个数,使得数列的权值小于等于给定值d 题解: 排序,每次挑最大的和最小的,看看最小的能跟多少个数差$ d$,看看最大的能 ...
分类:
其他好文 时间:
2018-02-25 15:47:50
阅读次数:
243
"A. Points on the line" 题意 给定一条直线上$n$个点,要求去掉最少的点,使得直线上相距最远的两个点的距离$\leq d$. 思路 枚举长度为$d$的区间。 Code "B. Our Tanya is Crying Out Loud" 题意 初始数为$n$,两种操作: 1. ...
分类:
其他好文 时间:
2018-02-25 13:07:44
阅读次数:
184
题目链接:http://codeforces.com/problemset/problem/870/E 题意: 给出平面坐标系上的n个点。 对于每个点,你可以画一条经过这个点的横线或竖线或什么都不画。 两条重合的直线算作一条直线。 问你能画出多少种不同的图案。 题解: 将所有横坐标或纵坐标相同的两点 ...
分类:
其他好文 时间:
2018-02-25 13:03:50
阅读次数:
165
人生中第三次$CF$。。。 考试中切了$A$~$E$ $F$题会做没时间写 题解 A:Points on the line 题意 给定一个数列,删最小的数,使最大差不大于一个定值 Sol 排序后选的一定是段连续的区间,枚举左右端点即可 ~~手速慢了233~~ cpp include define R ...
分类:
其他好文 时间:
2018-02-25 11:19:11
阅读次数:
208