E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
uvaoj
uvaoj
1586-molar mass
/* Anorganiccompoundisanymemberofalargeclassofchemicalcompoundswhosemoleculescontaincarbon.Themolarmassofanorganiccompoundisthemassofonemoleoftheorganiccompound.Themolarmassofanorganiccompoundcanbecom
kalilili
·
2014-12-03 22:00
UVAOJ
133The Dole Queue
/*TheDoleQueue Inaseriousattempttodownsize(reduce)thedolequeue,TheNewNationalGreenLabourRhinocerosPartyhasdecidedonthefollowingstrategy.Everydayalldoleapplicantswillbeplacedinalargecircle,facinginwar
kalilili
·
2014-12-03 21:00
UVaOJ
-213 Message Decoding
/*MessageDecoding Somemessageencodingschemesrequirethatanencodedmessagebesentintwoparts.Thefirstpart,calledtheheader,containsthecharactersofthemessage.Thesecondpartcontainsapatternthatrepresentstheme
kalilili
·
2014-12-03 21:00
UVAOJ
489-Hangman Judge
/* HangmanJudge In``HangmanJudge,''youaretowriteaprogramthatjudgesaseriesofHangmangames.Foreachgame,theanswertothepuzzleisgivenaswellastheguesses.Rulesarethesameastheclassicgameofhangman,andaregivena
kalilili
·
2014-12-03 21:00
UVa推荐题目
一、《算法竞赛入门经典》刘汝佳(
UVaOJ
351道题)以下部分内容摘自:http://sdkdacm.5d6d.c
QQQUQ
·
2014-09-21 10:10
【
UVaOJ
】133 - The Dole Queue
TheDoleQueue Inaseriousattempttodownsize(reduce)thedolequeue,TheNewNationalGreenLabourRhinocerosPartyhasdecidedonthefollowingstrategy.Everydayalldoleapplicantswillbeplacedinalargecircle,facinginwards
copica
·
2014-08-16 00:00
链表
133
UvaOJ
【
UVaOJ
】101 - The Blocks Problem
TheBlocksProblem Background ManyareasofComputerScienceusesimple,abstractdomainsforbothanalyticalandempiricalstudies.Forexample,anearlyAIstudyofplanningandrobotics(STRIPS)usedablockworldinwhicharobota
copica
·
2014-08-15 17:00
101
UvaOJ
【
UVaOJ
】127 - "Accordian" Patience
``Accordian''Patience Youaretosimulatetheplayingofgamesof``Accordian''patience,therulesforwhichareasfollows:Dealcardsonebyoneinarowfromlefttoright,notoverlapping.Wheneverthecardmatchesitsimmediatenei
copica
·
2014-08-15 16:00
list
127
UvaOJ
UVaOJ
401 - Palindromes
401-PalindromesTimelimit:3.000secondsAregularpalindromeisastringofnumbersorlettersthatisthesameforwardasbackward.Forexample,thestring"ABCDEDCBA"isapalindromebecauseitisthesamewhenthestringisreadfromle
Ash_Zheng
·
2014-05-28 09:00
平时练习
UVa OJ 127 - "Accordian" Patience (“手风琴”纸牌)
UVaOJ
127-"Accordian"Patience(“手风琴”纸牌)Timelimit:3.000seconds限时:3.000秒 Problem问题Youaretosimulatetheplayingofgamesof"Accordian"patience
a_1_2_ab
·
2014-05-21 16:00
算法竞赛入门经典+挑战编程+USACO
一、
UVaOJ
http://uva.onlinejudge.org 西班牙Valladolid大学的程序在线评测系统,是历史最悠久、
·
2014-05-20 21:00
USACO
UVAoj
11991
#include #include #include usingnamespacestd; map>a; intmain() { intn,m,i,x,y; while(cin>>n>>m) { a.clear(); for(i=0;i>x; if(!a.count(x)) { a[x]=vector(); } a[x].push_back(i+1); } while(m--) { cin>>x>
u012678352
·
2014-03-14 15:00
UVaOJ
-674 Coin Change (完全背包)
题意: 有1,5,10,25,50五种硬币,给出一个金额,问有几种凑钱的方式。思路: 递推; 首先将dp数组全部初始化为0,dp[0]=1,dp[i]表示“面值i凑钱种数”; for(i=0;i #defineN8000 intcoin[5]={1,5,10,25,50}; intdp[N]={1}; intmain() { inti,j,n; for(i=0;i<5;i
u012628310
·
2014-02-18 21:00
动态规划
完全背包
UvaOJ
10010 Where's Waldorf?
Uvaoj
题目Givena m by n gridofletters,( ),andalistofwords,findthelocationinthegridatwhichthewordcanbefound.Awordmatchesastraight
u013573047
·
2014-02-09 10:00
Uva OJ 401 Palindromes 镜像串与回文串
西班牙大学
Uvaoj
401题Aregularpalindromeisastringofnumbersorlettersthatisthesameforwardasbackward.Forexample,
u013573047
·
2014-02-05 21:00
【
UVaOJ
】196 - Spreadsheet
Spreadsheet In1979,DanBricklinandBobFrankstonwroteVisiCalc,thefirstspreadsheetapplication.Itbecameahugesuccessand,atthattime,wasthekillerapplicationfortheAppleIIcomputers.Today,spreadsheetsarefoundon
copica
·
2014-01-05 17:00
UvaOJ
196
Spreadshee
【
UVaOJ
】 657 - The die is cast
InterGamesisahigh-techstartupcompanythatspecializesindevelopingtechnologythatallowsuserstoplaygamesovertheInternet.Amarketanalysishasalertedthemtothefactthatgamesofchanceareprettypopularamongtheirpote
copica
·
2014-01-03 00:00
cast
is
the
Die
UvaOJ
657
【
UVaOJ
】401 Palindromes
PalindromesAregularpalindromeisastringofnumbersorlettersthatisthesameforwardasbackward.Forexample,thestring "ABCDEDCBA" isapalindromebecauseitisthesamewhent
copica
·
2013-12-25 13:00
Palindromes
401
UvaOJ
【
UVaOJ
】 572 Oil Deposits
572-OilDepositsTimelimit:3.000secondsTheGeoSurvCompgeologicsurveycompanyisresponsiblefordetectingundergroundoildeposits.GeoSurvCompworkswithonelargerectangularregionoflandatatime,andcreatesagridthatdi
copica
·
2013-12-25 13:00
572
UvaOJ
oil
Deposits
stack of flapjacks uva 120
UVaOJ
120-StacksofFlapjacks(烙饼叠)Timelimit:3.000seconds限时:3.000秒 Background背景StacksandQueuesareoftenconsideredthebreadandbutterofdatastructuresandfinduseinarchitecture
u012315428
·
2013-10-02 16:00
关于大数相乘的一个简单算法。
前不久在
UVAOJ
上遇到一个大数相乘的题目,以前都只是遇到简单的大数相加,看到这道题的第一想法就是从后面向前乘,存储每一次相乘得出的结果,最后相加,实现起来非常麻烦,而且容易出错,后来查了下相关的算法,
u011194165
·
2013-08-14 15:00
算法
uvaoj
12283
题目及官方解题报告在这:here E题#include #include #include #definemaxn1=1;i--) { for(intk=i;k
cugbbaoge
·
2013-07-29 17:00
uva
Baoge
排序/查找 10194 - Football (aka Soccer)
UVaOJ
ProblemA:Football(akaSoccer) TheProblemFootballthemostpopularsportintheworld(americansinsisttocallit"Soccer
SIOFive
·
2013-07-11 15:00
String
sort
STL
searching
排序/查找 156 - Ananagrams
UVaOJ
Ananagrams Mostcrosswordpuzzlefansareusedto anagrams--groupsofwordswiththesamelettersindifferentorders
SIOFive
·
2013-07-10 17:00
sort
searching
排序/查找 299 - Train Swapping
UVaOJ
TrainSwapping Atanoldrailwaystation,youmaystillencounteroneofthelastremaining``trainswappers''.
SIOFive
·
2013-07-10 10:00
sort
searching
排序/查找 152 - Tree's a Crowd
UVaOJ
Tree'saCrowd DrWilliamLarch,notedplantpsychologistandinventorofthephrase``Thinklikeatree--ThinkFig
SIOFive
·
2013-07-10 10:00
排序
查找
排序/查找 10474 - Where is the Marble?
UVaOJ
WhereistheMarble?
SIOFive
·
2013-07-10 09:00
排序
查找
大数乘法 748 - Exponentiation
UVaOJ
Exponentiation Problemsinvolvingthecomputationofexactvaluesofverylargemagnitudeandprecisionarecommon.Forexample
SIOFive
·
2013-07-09 11:00
String
大数运算
644 - Immediate Decodability
UVaOJ
ImmediateDecodability Anencodingofasetofsymbolsissaidtobe immediately decodableifnocodeforonesymbolistheprefixofacodeforanothersymbol.Wewillassumeforthisproblemthatallcodesareinbinary
SIOFive
·
2013-07-08 21:00
算法
String
10010 - Where's Waldorf?
UVaOJ
Where'sWaldorf?
SIOFive
·
2013-07-08 14:00
uva
UVaOJ
10167---Birthday Cake
UVaOJ
10167---BirthdayCake暴力求解法#include usingnamespacestd; typedefstructcoordinate { intx,y;
yf924092
·
2013-06-12 23:00
uva
uva
OJ
oj10167
10167
UVaOJ
572---Oil Deposits
这道题其实是一个图的遍历,就是看几次能把图遍历完全,刚开始我考虑到用深度优先遍历,而因为图是用邻接矩阵存储的要求当前遍历结点的下一个访问的结点有点麻烦,所以,结合题意“相邻”,所以只要以当前结点为圆心访问其一周,就可以知道是不是在同一个包里了,比深度优先方便了很多,可以实现题目的要求 失误1:没看清题目要求,数组定义过小; 失误2:遍历一周的节点的数组没写好一开始#include #inc
yf924092
·
2013-06-10 23:00
遍历
ACM
UVaOJ572---Oil
Depos
算法竞赛入门经典第四章 【
uvaoj
在线习题(二)】
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=96uva401http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=96&page=show_problem&problem=342这个题得
architect19
·
2013-03-30 19:00
算法竞赛入门经典第4章 【
uvaoj
习题(一)】
题目合集http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94uva10055http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=9
architect19
·
2013-03-30 11:00
算法竞赛入门经典+挑战编程+USACO
一、
UVaOJ
http://uva.onlinejudge.org 西班牙Valladolid大学的程序在线评测系统,是历史最悠久、最著名的OJ。
architect19
·
2013-03-28 20:00
UVa 11292 - The Dragon of Loowater
Solution//
UVaOJ
755 //487--3279 //byACodeRabbi
Ra_WinDing
·
2012-12-04 23:00
UVaOJ
10785 - The Mad Numerologist
AOAPCI: BeginningAlgorithmContests(RujiaLiu) :: Volume1.ElementaryProblemSolving ::Sorting/SearchingDescription对于26个英文字母,规定其值如下表:对于一个名字,规定consonantvalues和vowelvalues的计算方式如下:要求构造一姓名,规则如下:长度为n。consonant
Ra_WinDing
·
2012-11-23 20:00
UVaOJ
755 - 487--3279
AOAPCI: BeginningAlgorithmContests(RujiaLiu) :: Volume1.ElementaryProblemSolving ::Sorting/SearchingDescription一个电话号码,有不同的表示方式。输入不同方式表示的电话号码。输出所有出现超过一次的电话号码及其出现频率。TypeSorting/SearchingAnalysis利用STL,轻松
Ra_WinDing
·
2012-11-23 19:00
ACM
(Step1-500题)
UVaOJ
+算法竞赛入门经典+挑战编程+USACO2012年09月17日22:17:50下面给出的题目共计560道,去掉重复的也有近500题,作为ACMerTrainingStep1
linshixina
·
2012-11-23 14:00
UVaOJ
10194 - Football(aka Soccer)
AOAPCI: BeginningAlgorithmContests(RujiaLiu) :: Volume1.ElementaryProblemSolving ::Sorting/SearchingDescription模拟足球小组赛的规则,通过比赛记录,计算出最后的rank及队伍的各项数据。rank规则(优先级从高到低):分数最多者。胜场最多者。进丢球差最大者。进球数最多者。比赛场次少者。队名
Ra_WinDing
·
2012-11-22 23:00
UVaOJ
123 - Searching Quickly
AOAPCI: BeginningAlgorithmContests(RujiaLiu) :: Volume1.ElementaryProblemSolving ::Sorting/SearchingDescription在一些文章标题中,寻找关键词。所谓关键词,就是在一个过滤词表中,没有被过滤掉的单词。请将关键词找出来后,按字典序排序。且输出关键词时,是将关键词在标题中以全大写的形式出现(其他单
Ra_WinDing
·
2012-11-21 11:00
UVaOJ
400 - Unix ls
AOAPCI: BeginningAlgorithmContests(RujiaLiu) :: Volume1.ElementaryProblemSolving ::Sorting/SearchingDescriptionUnix系统输出文件列表的方式是:每行最多有60个字符。最右边一列的长度为文件名长度的最大值。除了最右边一列,其他列的长度为文件名长度的最大值+2。文件名按字典序,从上到下输出。
Ra_WinDing
·
2012-11-20 21:00
UVaOJ
156 - Ananagrams
AOAPCI: BeginningAlgorithmContests(RujiaLiu) :: Volume1.ElementaryProblemSolving ::Sorting/SearchingDescriptionAnagram指的是对于某个单词来说,仅仅调换了字母排列顺序的单词。给出一个字典,它含有多个单词,找出里面不是其他单词anagram的单词。按字典序输出。TypeSorting/
Ra_WinDing
·
2012-11-20 20:00
UVaOJ
120 - Stacks of Flapjacks
AOAPCI: BeginningAlgorithmContests(RujiaLiu) :: Volume1.ElementaryProblemSolving ::Sorting/SearchingDescription对于一个栈,有一种操作方法Flip(x)。该方法可以将栈顶的x个元素反转。给出一个栈序列(从上到下),要求通过操作使其越接近栈顶的元素越小。输出按操作的先后顺序,输出操作数x。T
Ra_WinDing
·
2012-11-19 13:00
UVaOJ
299 - Train Swapping
AOAPCI: BeginningAlgorithmContests(RujiaLiu) :: Volume1.ElementaryProblemSolving ::Sorting/SearchingDescription火车可以通过swapping装置,调换相邻两节车厢的位置。按顺序给出每节车厢的编号,请调换火车的车厢,使得车厢的编号升序。请求出最少要用到几次swapping装置。TypeSor
Ra_WinDing
·
2012-11-18 18:00
UVaOJ
152 - Tree's a Crowd
AOAPCI: BeginningAlgorithmContests(RujiaLiu) :: Volume1.ElementaryProblemSolving ::Sorting/SearchingDescription在一个三维直角坐标系中,存在n个点。对于某个点,设离它最近的点的距离为dis。给出所有点的坐标,要求求出dis在1~10以内的点的数量。TypeSorting/Searching
Ra_WinDing
·
2012-11-18 14:00
UVaOJ
10474 - Where is the Marble?
AOAPCI: BeginningAlgorithmContests(RujiaLiu) :: Volume1.ElementaryProblemSolving ::Sorting/SearchingDescription找弹珠。每个弹珠都有一个数字(可重复),且按数字大小给弹珠排序。询问一个数字,要求输出该数字在弹珠中出现的最小位置。TypeSorting/SearchingAnalysis给弹
Ra_WinDing
·
2012-11-17 13:00
UVaOJ
10420 - List of Conquests
AOAPCI: BeginningAlgorithmContests(RujiaLiu) :: Volume1.ElementaryProblemSolving ::Sorting/SearchingDescription某个大BOSS的情人遍布世界各地。因此他有个情人表,表的每项以国家名开头,之后是情人名。给你这张表,要求统计他在各国情人的数量。TypeSorting/SearchingAnal
Ra_WinDing
·
2012-11-11 23:00
UVaOJ
340 - Master-Mind Hints
AOAPCI: BeginningAlgorithmContests(RujiaLiu) :: Volume1.ElementaryProblemSolving ::Sorting/SearchingDescription很经典的MasterMind游戏,游戏规则已经被人熟知,只是游戏原型比较少人了解。游戏规则就是,由一个人出题,一个人解密。密码由N位1~9的数字组成。解密者不断提出猜测,出题人每
Ra_WinDing
·
2012-11-11 22:00
UVaOJ
10115 - Automatic Editing
AOAPCI: BeginningAlgorithmContests(RujiaLiu) :: Volume1.ElementaryProblemSolving :: StringDescription完成一项自动编辑工作。该工作要求按一些规则完成替换工作。对于每个规则,要求不停地在字符串中找到关键词进行替换,直到关键词不再出现于字符串中为止。要求完成所有规则的替换工作,输出最终字符串。TypeS
Ra_WinDing
·
2012-11-10 23:00
上一页
1
2
3
4
5
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他