UVA
文章平均质量分 83
lljjccsskk
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UVA-11809 Floating-Point Numbers
题目地址:http://uva.onlinejudge.org/external/118/11809.pdf 目前花时间最长的一题…… 输入方式算个小坑吧不仔细浪费了很多时间,最先想到的办法就是查表,可是做题太少还妄想用奇怪的办法,最终自己的不成熟的方法打表贡献了好几次WA。 表打好之后精度问题也让我很茫然,看了其他大神的题解直接借鉴了1e原创 2015-02-10 22:04:10 · 337 阅读 · 0 评论 -
UVA-10163 Storage Keepers (DP多次)
Randy Company hasN (1≤ N≤ 100) storages. Company wants some men to keep them safe. Nowthere areM (1≤ M≤ 30) men asking for the job. Company will choose several from them. RandyCompany empl原创 2016-04-28 09:21:16 · 388 阅读 · 0 评论 -
UVA-10641 Barisal Stadium (DP+几何)
The BCCB (Bangladesh Cricket Control Board) has decided to build a new international cricket stadiumin Barisal. It will be convex in shape unlike others. Floodlight will be placed outside the stadium原创 2016-04-29 09:42:35 · 717 阅读 · 0 评论 -
UVA-1630 Folding (KMP、区间dp)
FoldingTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionBill is trying to compactly represent sequences of capit原创 2016-04-20 21:15:09 · 402 阅读 · 0 评论 -
UVA - 1386 Cellular Automaton (矩阵快速幂)
Cellular AutomatonTime Limit: 18000MS 64bit IO Format: %lld & %lluSubmit Status uDebugDescription题意:对一个圈里的n个数字进行操作,每次操作都将数字i与其相邻距离d以内的数字加起来对m取余。共进行k次原创 2016-11-02 22:48:14 · 382 阅读 · 0 评论 -
UVA - 10561 Treblecross (博弈数学&SG函数)
TreblecrossTime Limit: 3000MS 64bit IO Format: %lld & %lluSubmit Status uDebugDescription借鉴自:http://blog.youkuaiyun.com/yeyeyeguoguo/article/原创 2016-10-24 22:42:35 · 375 阅读 · 0 评论 -
UVA - 11168 Airport (凸包+整理模板)
AirportTime Limit: 3000MS 64bit IO Format: %lld & %lluSubmit Status uDebugDescription题意:给平面上n个点,找一条直线,使得所有点在直线同侧(或直线上),且到直线距离之和尽量小。分析:O(n)时间遍历凸包的原创 2016-11-07 17:13:27 · 350 阅读 · 0 评论 -
UVA - 1356 Bridge (辛普森公式)
BridgeTime Limit: 3000MS 64bit IO Format: %lld & %lluSubmit Status uDebugDescription题意:桥上等距离摆放着塔高为H的若干个塔,忽略宽度,相邻塔的距离不超过D,塔之间绳索形成全等的对称抛物线。桥长度为B,原创 2016-11-03 16:10:47 · 649 阅读 · 0 评论 -
UVA-3516 Exploring Pyramids (DP)
Exploring PyramidsTime Limit: 3000MS 64bit IO Format: %lld & %lluSubmit Status uDebugDescriptionProblem descriptions:System Crawler 2016-10-16原创 2016-10-20 16:39:48 · 279 阅读 · 0 评论 -
UVA-1632 Alibaba (区间DP)
Alibaba the famous character of our childhood stories would like to be immortal in order to keepbringing happiness to children. In order to rich this status he needs to prove that he is still able t原创 2016-04-27 00:18:41 · 388 阅读 · 0 评论 -
UVA-1631 Locker(DP)
A password locker withN digits, each digit can be rotated to 0-9 circularly.You can rotate 1-3 consecutive digits up or down in one step.For examples:567890 → 567901 (by rotating the last 3 digi原创 2016-04-26 20:24:16 · 417 阅读 · 0 评论 -
UVa-12186 Another Crisis (dp)
A couple of years ago, a new world wide crisis started, leaving many people with economical problems.Some workers of a particular company are trying to ask for an increase in their salaries.The comp原创 2016-03-14 09:11:53 · 321 阅读 · 0 评论 -
UVA-230 Borrowers
stable_sort sort的应用;1、可以传入两个参数; sort(a,a+N) ,其中a是数组,a+N表示对a[0]至a[N-1]的N个数进行排序(默认从小到大排序);2、传入三个参数; sort(a,a+N,cmp),第三个参数是一个函数 ; 如果让函数从大到小排序,可以用如下算法实现; bool cmp(int a,in原创 2015-05-19 11:10:45 · 457 阅读 · 0 评论 -
Tree Recovery-UVA 536
代码比较简洁,记录一下。原创 2015-07-19 09:24:43 · 321 阅读 · 0 评论 -
UVALive 4857- Halloween Costumes
此题与之前food delivery同为区间dp,但是我依然没有想到……大致题意为题目提供了n个party,每个party对应一件衣服。由于party对衣服有要求,所以要按穿要求的衣服。衣服穿上可以脱下,但不能再穿回去,若要穿上需要算一套新衣服。求符合party要求情况下的衣服最小件数。说说思路:在不知其他party情况下,假设在i到j个party之间衣服件数为dp[i][j],则原创 2015-08-14 21:31:02 · 361 阅读 · 0 评论 -
uva140-Bandwidth
刷刘汝佳的时候半天没看懂题,看了大神题解:http://blog.youkuaiyun.com/keshuai19940722/article/details/9752217题意大致明白了,为了加深理解,特意给代码加上注释(虽然大神已经写的浅显易懂orz)。BandwidthTime Limit: 3000MS Memory Limit: Unknown 64bit原创 2015-08-19 16:41:50 · 319 阅读 · 0 评论 -
UVa-10817 Headmaster's Headache (位运算)
Headmaster's HeadacheThe headmaster of SpringField School is consider-ing employing some newteachers for certain subjects.There are a number of teach-ers applying for the posts.Each teacher is原创 2016-03-30 21:54:55 · 440 阅读 · 0 评论 -
UVa-1252 Twenty Questions (位运算)
Twenty QuestionsTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionConsider a closed world and a set of features tha原创 2016-04-01 09:46:52 · 315 阅读 · 0 评论 -
UVa-10618 Tango Tango Insurrection&& UVa-1627 Team them up!
10618题意繁复,见紫书P291本题条件比较复杂,是情况比较多的多维dp,个人认为难点在处理各阶段关系上。看了紫书详细的解释,将各状态下的决策结果通过构造函数计算出来即可。记录一下,以后温习直接翻书。#include #include #include #include #include #include #include #include #include #in原创 2016-04-04 18:10:54 · 283 阅读 · 0 评论 -
UVA - 10870 Recurrences (矩阵快速幂)
RecurrencesTime Limit: 3000MS 64bit IO Format: %lld & %lluSubmit Status uDebugDescription题意:考虑线性递推关系f(n)=a1*f(n-1)+a2*f(n-2)+a3*f(n-3)+...+ad*f(n-d),原创 2016-11-02 00:12:28 · 291 阅读 · 0 评论
分享