上一页 1 2 3 4 5 6 7 8 ··· 17 下一页
摘要: 题目链接: "HDU 1686" Problem Description The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He was a m 阅读全文
posted @ 2019-10-30 22:26 wuli涛涛 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "HDU 1711" Problem Description Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 The first line of in 阅读全文
posted @ 2019-10-29 21:32 wuli涛涛 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 题意 给定一个三角形和一个点 $p$,如果该点不在三角形边上直接输出 $ 1$,否则在三角形上找一点 $q$,使得线段 $pq$ 平分三角形面积。 思路 看完题想都没想直接二分了。 就是比赛时复制粘贴的时候改错了,贡献了三发罚时。 板子来自 kuangbin 的模板。 赛后发现直接推也可以,也不用写 阅读全文
posted @ 2019-10-28 22:19 wuli涛涛 阅读(1786) 评论(0) 推荐(0) 编辑
摘要: 题意 王子想要娶公主,但是需要完成一个挑战:在一些房间中找出公主在哪。 每个房间有一个人,他们彼此知道谁在哪个房间。可以问他们三种问题: 你是谁? 在某个房间是谁? 公主在哪个房间? 有三类人,一类一定说真话,一类一定说假话,一类可能说真话可能说假话。 王子知道这三类人的人数分别为 $a$, $b$ 阅读全文
posted @ 2019-10-27 21:59 wuli涛涛 阅读(1741) 评论(0) 推荐(0) 编辑
摘要: 所谓对拍,就是随机生成数据,然后用一个肯定正确的暴力算法的程序,去测试一个要提交的程序。 由于比赛中一般使用 Linux 系统,所以本篇博客的代码都是 Linux 下的程序代码。 ~~其实最简单的方式是写脚本。~~ 这里介绍的是用选手最熟悉的 C++ 语言写对拍程序。 假设要提交的程序为 sol.c 阅读全文
posted @ 2019-10-26 20:57 wuli涛涛 阅读(387) 评论(0) 推荐(0) 编辑
摘要: ACM ICPC 现场赛不同的赛站可能比赛环境不同,不过一般都是 Ubuntu 系统。附带的软件可能略有不同,可能会有使用习惯的差异导致效率下降或者无法运行代码,但是在终端下编译运行代码都是相同的。本篇博客介绍的是在终端下如何编辑代码、编译代码、运行代码以及调试代码。 编辑代码 当然是 vim 神器 阅读全文
posted @ 2019-10-25 23:41 wuli涛涛 阅读(2514) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "HDU 5572" Problem Description On an infinite smooth table, there's a big round fixed cylinder and a little ball whose volume can be ignored. Cu 阅读全文
posted @ 2019-10-24 22:48 wuli涛涛 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "HDU 1724" Problem Description Math is important!! Many students failed in 2+2’s mathematical test, so let's AC this problem to mourn for our lo 阅读全文
posted @ 2019-10-23 22:58 wuli涛涛 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Quartus II 仿真的默认时长是 1us。 设置时钟时看到 End time 想修改时长,把默认的 1us 改成 10us。 然后提示 End time 不合法。(只能设置为 0 到 1us) 正确的做法是在菜单栏选择 Edit End time,然后将 time 设置为 10us 就可以了。 阅读全文
posted @ 2019-10-22 23:29 wuli涛涛 阅读(6974) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "LightOJ 1248" Description Given a dice with n sides, you have to find the expected number of times you have to throw that dice to see all its f 阅读全文
posted @ 2019-10-21 21:51 wuli涛涛 阅读(174) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 17 下一页