10 2017 档案

摘要:题目链接:https://cn.vjudge.net/problem/UVA-11168 题意: 给出平面上的n个点,求一条直线,使得所有的点在该直线的同一侧(可以在该直线上),并且所有点到该直线的距离和最小,输出该距离除以n; 题解: 显然最好能让越多的点在这条直线上就越好,但又要所有点满足在同侧 阅读全文
posted @ 2017-10-31 22:10 Dilthey 阅读(354) 评论(0) 推荐(0)
摘要:1、首先,凸包是啥: 若是在二维平面上,则一般的,给定二维平面上的点集,凸包就是将最外层的点连接起来构成的凸多边型,它能包含点集中所有的点。 ─────────────────────────────────────────────────────────────────────────────── 阅读全文
posted @ 2017-10-31 21:44 Dilthey 阅读(343) 评论(0) 推荐(0)
摘要:题目链接:https://cn.vjudge.net/problem/UVA-12304 题意: 作为题目大合集,有以下一些要求: ①给出三角形三个点,求三角形外接圆,求外接圆的圆心和半径。 ②给出三角形三个点,求三角形内接圆,求内接圆的圆心和半径。 ③给出一个圆,和一个点,求过该点的圆的切线与x轴 阅读全文
posted @ 2017-10-30 22:38 Dilthey 阅读(679) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/problemset/problem/883/H Time limit: 3000 ms Memory limit: 262144 kB Kolya has a string s of length n consisting of lowerca 阅读全文
posted @ 2017-10-23 16:34 Dilthey 阅读(691) 评论(0) 推荐(0)
摘要:题目链接:https://cn.vjudge.net/problem/HDU-2819 Given an N*N matrix with each entry equal to 0 or 1. You can swap any two rows or any two columns. Can you 阅读全文
posted @ 2017-10-20 22:22 Dilthey 阅读(370) 评论(0) 推荐(0)
摘要:题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=5727 Problem DescriptionSJX has 2*N magic gems. N of them have Yin energy inside while others hav 阅读全文
posted @ 2017-10-18 22:16 Dilthey 阅读(297) 评论(0) 推荐(0)
摘要:题目链接:https://cn.vjudge.net/problem/LightOJ-1030 You are in a cave, a long cave! The cave can be represented by a 1 x N grid. Each cell of the cave can 阅读全文
posted @ 2017-10-17 22:12 Dilthey 阅读(259) 评论(0) 推荐(0)
摘要:题目链接:https://hihocoder.com/problemset/problem/1305 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 给定两个区间集合 A 和 B,其中集合 A 包含 阅读全文
posted @ 2017-10-16 22:37 Dilthey 阅读(254) 评论(0) 推荐(0)
摘要:题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=5512 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Des 阅读全文
posted @ 2017-10-15 22:08 Dilthey 阅读(254) 评论(0) 推荐(0)
摘要:题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=1281 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Des 阅读全文
posted @ 2017-10-13 20:24 Dilthey 阅读(330) 评论(0) 推荐(0)
摘要:题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=1083 Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem D 阅读全文
posted @ 2017-10-13 19:18 Dilthey 阅读(212) 评论(0) 推荐(0)
摘要:题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=2444 Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Des 阅读全文
posted @ 2017-10-12 23:08 Dilthey 阅读(284) 评论(0) 推荐(0)
摘要:题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=1045 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Des 阅读全文
posted @ 2017-10-10 21:19 Dilthey 阅读(542) 评论(0) 推荐(0)
摘要:引用来自https://www.renfei.org/blog/bipartite-matching.html 二分图:把一个图G的所有顶点划分为两个不相交集 L 和 R ,使得图G中每一条边都分别连接 L , R 中的顶点。如果存在这样的划分,则此图为一个二分图。 匹配:一个「匹配」(matchi 阅读全文
posted @ 2017-10-10 20:18 Dilthey 阅读(1209) 评论(0) 推荐(0)
摘要:原本这是离散数学的期末作业,因为对图论比较熟悉,就先看了一下图论题; 引用《离散数学(左孝凌版)》(其实就是我们的离散数学课本……): 然后直接照着码成代码即可: 阅读全文
posted @ 2017-10-08 22:58 Dilthey 阅读(3238) 评论(0) 推荐(0)
摘要:题还是那个题:http://www.cnblogs.com/dilthey/p/6827959.html 不过我们今天换一种线段树实现来做这道题; 关于zkw线段树的讲解:https://zhuanlan.zhihu.com/p/29876526(而且我还在文章里被@了,超开心的ヾ(≧∇≦*)ヾ) 阅读全文
posted @ 2017-10-07 23:25 Dilthey 阅读(270) 评论(0) 推荐(0)
摘要:A. The Artful Expedient time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output time limit per te 阅读全文
posted @ 2017-10-07 16:32 Dilthey 阅读(209) 评论(0) 推荐(0)
摘要:题目链接:https://hihocoder.com/problemset/problem/1334 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 Given N words from the t 阅读全文
posted @ 2017-10-07 10:19 Dilthey 阅读(304) 评论(0) 推荐(0)
摘要:之前准备做hiho一下的时候,网上查关于无向图的最大独立集; 看到了一篇论文,说是能“求一般图的最小顶点覆盖集问题”的混合贪婪算法; 我一看觉得挺牛逼的啊,跑去研究了大半天的这篇论文,发现实际是求近似解的,在特殊情况下偏差极大; 实现完之后拿去做题,发现连样例都过不了,差点还以为程序哪里写挫了, 仔 阅读全文
posted @ 2017-10-07 00:12 Dilthey 阅读(4458) 评论(0) 推荐(0)
摘要:题目链接:http://uoj.ac/problem/145 题目描述 幻方是一种很神奇的 N∗N 矩阵:它由数字 1,2,3,⋯⋯,N×N 构成,且每行、每列及两条对角线上的数字之和都相同。 当 N 为奇数时,我们可以通过下方法构建一个幻方: 首先将 1 写在第一行的中间。 之后,按如下方式从小到 阅读全文
posted @ 2017-10-05 10:25 Dilthey 阅读(609) 评论(0) 推荐(0)
摘要:题目链接:http://poj.org/problem?id=3254 Time Limit: 2000MS Memory Limit: 65536K Description Farmer John has purchased a lush new rectangular pasture compo 阅读全文
posted @ 2017-10-03 12:01 Dilthey 阅读(238) 评论(0) 推荐(0)
摘要:题目链接:https://cn.vjudge.net/problem/HDU-1565 Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description 给你一个 阅读全文
posted @ 2017-10-03 00:01 Dilthey 阅读(472) 评论(0) 推荐(0)