
Uva
文章平均质量分 83
编码之夜
产品研发工程师
展开
-
Uva10905
Childrens GameThere are lots of number games for children. These games are pretty easy to play but not so easy to make. We will discuss about an interesting game here. Each player will be given原创 2014-07-26 10:36:56 · 829 阅读 · 0 评论 -
UVA138(数论问题二分打表)
题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=19591解题思路:题意是给你一个last number记为n,在1~n之间给出house number记为m,求1~m的和 == n ~ m的和,输出10个满足条件的m和n,每个数字宽度为10。由求和公式,我们很明显可以推导出m和 n的关系为2 *原创 2014-12-30 10:55:12 · 569 阅读 · 0 评论 -
UVA11401(加法原理)
题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=22646解题思路:问1~n内选出三个不同的整数,组成三角形,有多少种选法?n的数据很大,进行数学分析可得。利用加法原理,枚举三角形的最长边为x的三角形有c(x)个,另外两边长分别为y和z。根据三角形不等式,有y + z > x,所以z的范围是x - y原创 2015-01-08 10:40:35 · 775 阅读 · 0 评论 -
UVA11549(Floyd判圈算法)
题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=28547解题思路:此题需要高效算法,根据Floyd判圈算法的思想,可以另k1 = k , k2 = k,用ans保存最大值。当k1 == k2时,跳出循环输出and即可。说明下,当k1== k2时是循环节的结束,再往下继续执行的话会出现循环,对解题原创 2015-01-06 15:56:50 · 613 阅读 · 0 评论 -
UVA10300(理解题意就容易切)
Ecological PremiumTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=18810DescriptionGerman farmers are giv原创 2014-11-30 12:56:28 · 1297 阅读 · 2 评论 -
UVA490(getline应用)
Rotating SentencesTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=18814DescriptionIn ``Rotating Senten原创 2014-11-30 13:27:33 · 568 阅读 · 0 评论 -
UVA458(ASCII应用+找规律)
The DecoderTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=18811DescriptionWrite a complete program that原创 2014-11-30 12:49:16 · 1094 阅读 · 0 评论 -
UVA494(阅读理解)
Kindergarten Counting GameTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=18812DescriptionEverybody sit原创 2014-11-30 16:41:28 · 877 阅读 · 0 评论 -
Uva10288(概率期望+暴力模拟)
A - CouponsTime Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluDescriptionInput: standard inputOutput: standard outputTime Limit: 2 secondsMemory Limit: 32 MB原创 2014-10-21 10:59:03 · 748 阅读 · 0 评论 -
UVA10361(字符串水题多坑)
Automatic PoetryTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=25129DescriptionTime Limit: 2 seconds原创 2014-11-26 21:30:53 · 687 阅读 · 0 评论 -
UVA10010(八方向暴力枚举)
Where's Waldorf?Time Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=18656DescriptionWhere's Waldorf? Giv原创 2014-11-26 12:18:45 · 736 阅读 · 0 评论 -
UVA401(回文串好题)
PalindromesTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=19520DescriptionA regular palindrome is a str原创 2014-11-25 19:43:56 · 600 阅读 · 0 评论 -
UVA10071(重温高中物理公式)
Back to High School PhysicsTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=18809DescriptionA particle原创 2014-11-26 09:21:20 · 942 阅读 · 0 评论 -
UVA11987(带权并查集的删除操作)
Problem AAlmost Union-FindI hope you know the beautiful Union-Find structure. In this problem, you're to implement something similar, but not identical.The data structure you need to write is原创 2014-10-01 12:45:42 · 2301 阅读 · 0 评论 -
UVA11991
Easy Problem from Rujia Liu?Though Rujia Liu usually sets hard problems for contests (for example, regional contests like Xi'an 2006, Beijing 2007 and Wuhan 2009, or UVa OJ contests like Rujia Liu's原创 2014-07-30 00:18:26 · 722 阅读 · 0 评论 -
Uva10382
Watering GrassInput: standard inputOutput: standard outputTime Limit: 3 secondsn sprinklers are installed in a horizontal strip of grass l meters long andw meters wide. Each sprinkler is i原创 2014-07-26 13:43:07 · 697 阅读 · 0 评论 -
Uva1346
SongsTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uDescriptionJohn Doe is a famous DJ and, therefore, has the problem of optimizing the placement of songs o原创 2014-07-25 20:29:42 · 708 阅读 · 0 评论