随笔分类 -  Online Judge

上一页 1 2 3 4 5 6 下一页

练习
hdu 2553 N皇后问题(深度递归搜索)
摘要:N皇后问题Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3730Accepted Submission(s): 1737Problem Description在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。你的任务是,对于给定的N,求出有多少种合法的放置方法。Input共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量;如果N=0,表示结束。Outpu 阅读全文

posted @ 2012-10-06 15:36 NewPanderKing 阅读(2587) 评论(0) 推荐(0) 编辑

zoj 2406 Specialized Four-Digit Numbers
摘要:Specialized Four-Digit NumbersTime Limit: 2 Seconds Memory Limit: 65536 KBFind and list all four-digit numbers in decimal notation that have the pr... 阅读全文

posted @ 2012-10-05 16:55 NewPanderKing 阅读(881) 评论(0) 推荐(0) 编辑

zoj 2417 Lowest Bit(简单的模拟)
摘要:Lowest BitTime Limit: 2 Seconds Memory Limit: 65536 KBGiven an positive integer A (1 int main(){ int n,bit_num[7],i; //得到可以组成100以内的二进制数的组合 ... 阅读全文

posted @ 2012-10-05 15:49 NewPanderKing 阅读(643) 评论(0) 推荐(0) 编辑

zoj 2433 Highways(英语是硬伤啊)
摘要:HighwaysTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeIn a distant country Lineland there are N cities and they are all located along ... 阅读全文

posted @ 2012-10-05 15:26 NewPanderKing 阅读(430) 评论(0) 推荐(0) 编辑

poj 1607 Deck(坑爹的水题啊)
摘要:DeckTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 745Accepted Submission(s): 395Problem Descript... 阅读全文

posted @ 2012-10-05 10:31 NewPanderKing 阅读(491) 评论(0) 推荐(0) 编辑

poj 1552 Doubles(简单的模拟一下)
摘要:DoublesTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 16425Accepted: 9404DescriptionAs part of an arithmetic competency program, your studen... 阅读全文

posted @ 2012-10-05 09:11 NewPanderKing 阅读(503) 评论(0) 推荐(0) 编辑

poj 1504 Adding Reversed Numbers(数学水题)
摘要:Adding Reversed NumbersTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 12526Accepted: 6914DescriptionThe Antique Comedians of Malidinesia pre... 阅读全文

posted @ 2012-10-04 17:20 NewPanderKing 阅读(2171) 评论(0) 推荐(0) 编辑

poj 1401 Factorial(数学水题)
摘要:FactorialTime Limit: 1500MSMemory Limit: 65536KTotal Submissions: 12345Accepted: 7693DescriptionThe most important part of a GSM network is so called ... 阅读全文

posted @ 2012-10-03 20:21 NewPanderKing 阅读(324) 评论(0) 推荐(0) 编辑

poj 1226 Substrings(c风格字符串的库函数的使用)
摘要:SubstringsTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 9527Accepted: 3272DescriptionYou are given a number of case-sensitive strings of al... 阅读全文

posted @ 2012-10-03 19:29 NewPanderKing 阅读(1319) 评论(0) 推荐(0) 编辑

poj 1027 The 3n + 1 problem(模拟,水题)
摘要:The 3n + 1 problemTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 43840Accepted: 13797DescriptionProblems in Computer Science are often class... 阅读全文

posted @ 2012-10-03 16:23 NewPanderKing 阅读(313) 评论(0) 推荐(0) 编辑

poj 1046 Color Me Less(水题)
摘要:Color Me LessTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 26432Accepted: 12740DescriptionA color reduction is a mapping from a set of disc... 阅读全文

posted @ 2012-10-03 16:06 NewPanderKing 阅读(939) 评论(0) 推荐(0) 编辑

poj 1006 Biorhythms(中国剩余定理)
摘要:BiorhythmsTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 94863Accepted: 29139DescriptionSome people believe that there are three cycles in a... 阅读全文

posted @ 2012-09-27 23:27 NewPanderKing 阅读(208) 评论(0) 推荐(0) 编辑

poj 1007 DNA Sorting(排序--快排)
摘要:DNA SortingTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 67603Accepted: 26858DescriptionOne measure of ``unsortedness'' in a sequence is th... 阅读全文

posted @ 2012-09-26 19:00 NewPanderKing 阅读(2820) 评论(0) 推荐(0) 编辑

poj 2153 Rank List(数据结构+图的用法)
摘要:Rank ListTime Limit: 10000MSMemory Limit: 65536KTotal Submissions: 7883Accepted: 2561DescriptionLi Ming is a good student. He always asks the teacher ... 阅读全文

posted @ 2012-09-10 17:49 NewPanderKing 阅读(805) 评论(0) 推荐(0) 编辑

poj 2051 Argus(数据结构:优先权队列)
摘要:ArgusTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 8312Accepted: 3701DescriptionA data stream is a real-time, continuous, ordered sequence ... 阅读全文

posted @ 2012-09-10 15:53 NewPanderKing 阅读(1136) 评论(0) 推荐(0) 编辑

poj 2023 Choose Your Own Adventure(数据结构+深度搜索)
摘要:Choose Your Own AdventureTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 1559Accepted: 638DescriptionAfter reading the book Tim and Marc Kill... 阅读全文

posted @ 2012-09-10 11:09 NewPanderKing 阅读(463) 评论(0) 推荐(0) 编辑

poj 2021 Relative Relatives(典型数据结构题)
摘要:Relative RelativesTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 3244Accepted: 1405DescriptionToday is Ted's 100th birthday. A few weeks ago... 阅读全文

posted @ 2012-09-09 19:59 NewPanderKing 阅读(403) 评论(0) 推荐(1) 编辑

poj 1656 Counting Black(模拟)
摘要:Counting BlackTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 9101Accepted: 5879DescriptionThere is a board with 100 * 100 grids as shown bel... 阅读全文

posted @ 2012-09-08 20:11 NewPanderKing 阅读(320) 评论(0) 推荐(0) 编辑

poj 2524 Ubiquitous Religions(最简单的并查集)
摘要:Ubiquitous ReligionsTime Limit: 5000MSMemory Limit: 65536KTotal Submissions: 17935Accepted: 8748DescriptionThere are so many different religions in th... 阅读全文

posted @ 2012-09-07 22:43 NewPanderKing 阅读(238) 评论(0) 推荐(0) 编辑

poj 1988 Cube Stacking(并查集)
摘要:Cube StackingTime Limit: 2000MSMemory Limit: 30000KTotal Submissions: 14901Accepted: 5037Case Time Limit: 1000MSDescriptionFarmer John and Betsy are p... 阅读全文

posted @ 2012-09-06 16:14 NewPanderKing 阅读(745) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 下一页

导航