摘要: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
阅读全文
摘要:Specialized Four-Digit NumbersTime Limit: 2 Seconds Memory Limit: 65536 KBFind and list all four-digit numbers in decimal notation that have the pr...
阅读全文
摘要:Lowest BitTime Limit: 2 Seconds Memory Limit: 65536 KBGiven an positive integer A (1 int main(){ int n,bit_num[7],i; //得到可以组成100以内的二进制数的组合 ...
阅读全文
摘要:HighwaysTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeIn a distant country Lineland there are N cities and they are all located along ...
阅读全文
摘要:DeckTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 745Accepted Submission(s): 395Problem Descript...
阅读全文
摘要:DoublesTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 16425Accepted: 9404DescriptionAs part of an arithmetic competency program, your studen...
阅读全文
摘要:Adding Reversed NumbersTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 12526Accepted: 6914DescriptionThe Antique Comedians of Malidinesia pre...
阅读全文
摘要:FactorialTime Limit: 1500MSMemory Limit: 65536KTotal Submissions: 12345Accepted: 7693DescriptionThe most important part of a GSM network is so called ...
阅读全文
摘要:SubstringsTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 9527Accepted: 3272DescriptionYou are given a number of case-sensitive strings of al...
阅读全文
摘要:The 3n + 1 problemTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 43840Accepted: 13797DescriptionProblems in Computer Science are often class...
阅读全文
摘要:Color Me LessTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 26432Accepted: 12740DescriptionA color reduction is a mapping from a set of disc...
阅读全文
摘要:BiorhythmsTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 94863Accepted: 29139DescriptionSome people believe that there are three cycles in a...
阅读全文
摘要:DNA SortingTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 67603Accepted: 26858DescriptionOne measure of ``unsortedness'' in a sequence is th...
阅读全文
摘要:Rank ListTime Limit: 10000MSMemory Limit: 65536KTotal Submissions: 7883Accepted: 2561DescriptionLi Ming is a good student. He always asks the teacher ...
阅读全文
摘要:ArgusTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 8312Accepted: 3701DescriptionA data stream is a real-time, continuous, ordered sequence ...
阅读全文
摘要:Choose Your Own AdventureTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 1559Accepted: 638DescriptionAfter reading the book Tim and Marc Kill...
阅读全文
摘要:Relative RelativesTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 3244Accepted: 1405DescriptionToday is Ted's 100th birthday. A few weeks ago...
阅读全文
摘要:Counting BlackTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 9101Accepted: 5879DescriptionThere is a board with 100 * 100 grids as shown bel...
阅读全文
摘要:Ubiquitous ReligionsTime Limit: 5000MSMemory Limit: 65536KTotal Submissions: 17935Accepted: 8748DescriptionThere are so many different religions in th...
阅读全文
摘要:Cube StackingTime Limit: 2000MSMemory Limit: 30000KTotal Submissions: 14901Accepted: 5037Case Time Limit: 1000MSDescriptionFarmer John and Betsy are p...
阅读全文