05 2016 档案
摘要:Viruses are usually bad for your health. How about ghting them with... other viruses? In this problem,you need to nd out how to synthesize such good v...
阅读全文
摘要:D. Broken robottime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou received as a gift a very cle...
阅读全文
摘要:B. F1 Championstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFormula One championship consists...
阅读全文
摘要:A. Ring roadtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputNowadays the one-way traffic is intr...
阅读全文
摘要:Doing HomeworkTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7660 Accepted Submission(s): ...
阅读全文
摘要:1027. Colors in Mars (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YuePeople in Mars represent the colors in their computers in a similar...
阅读全文
摘要:1026. Table Tennis (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA table tennis club has N tables available to the public. The tables ...
阅读全文
摘要:1025. PAT Ranking (25)时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueProgramming Ability Test (PAT) is organized by the College of Computer...
阅读全文
摘要:1024. Palindromic Number (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA number that will be the same when it is written forwards or b...
阅读全文
摘要:1023. Have Fun with Numbers (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueNotice that the number 123456789 is a 9-digit number consist...
阅读全文
摘要:1021. Deepest Root (25)时间限制1500 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA graph which is connected and acyclic can be considered a tree. The...
阅读全文
摘要:1020. Tree Traversals (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose that all the keys in a binary tree are distinct positive i...
阅读全文
摘要:1019. General Palindromic Number (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA number that will be the same when it is written forwa...
阅读全文
摘要:1002. A+B for Polynomials (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time, you are supposed to find A+B where A and B are two ...
阅读全文
摘要:1017. Queueing at Bank (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose a bank has K windows open for service. There is a yellow ...
阅读全文
摘要:1016. Phone Bills (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA long-distance telephone company charges its customers by the followi...
阅读全文
摘要:1015. Reversible Primes (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA reversible prime in any number system is a prime whose "revers...
阅读全文
摘要:1014. Waiting in Line (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose a bank has N windows open for service. There is a yellow l...
阅读全文
摘要:1013. Battle Over Cities (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIt is vitally important to have all the cities connected by hig...
阅读全文
摘要:1012. The Best Rank (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueTo evaluate the performance of our first year CS majored students, w...
阅读全文
摘要:1018. Public Bike Management (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThere is a public bike service in Hangzhou City which provi...
阅读全文
摘要:1011. World Cup Betting (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueWith the 2010 FIFA World Cup running, football fans the world ov...
阅读全文
摘要:1010. Radix (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a pair of positive integers, for example, 6 and 110, can this equation...
阅读全文
摘要:1009. Product of Polynomials (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time, you are supposed to find A*B where A and B are t...
阅读全文
摘要:1008. Elevator (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe highest building in our city has only one elevator. A request list is...
阅读全文
摘要:1007. Maximum Subsequence Sum (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a sequence of K integers { N1, N2, ..., NK }. A cont...
阅读全文
摘要:1006. Sign In and Sign Out (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAt the beginning of every day, the first person who signs in ...
阅读全文
摘要:1005. Spell It Right (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a non-negative integer N, your task is to compute the sum of ...
阅读全文
摘要:1004. Counting Leaves (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA family hierarchy is usually presented by a pedigree tree. Your j...
阅读全文
摘要:1003. Emergency (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAs an emergency rescue team leader of a city, you are given a special ma...
阅读全文
摘要:L 3-005 肿瘤诊断题目链接:https://www.patest.cn/contests/gplt/L3-004三维求连通块:用并查集,或者广搜,如果用深搜的话会爆栈#include #include #include #include #include #include #include u...
阅读全文
摘要:1001. A+B Format (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueCalculate a + b and output the sum in standard format -- that is, the d...
阅读全文
摘要:题目链接:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=5053先把第一个串插入回文树中,然后把s数组清空插入第二个串,统计两个cnt数组,...
阅读全文
摘要:L2-005 集合相似度题目链接:https://www.patest.cn/contests/gplt/L2-005题目的意思是要求两个集合的交集中互不相同元素的个数和两个集合并集中互不相同的元素的个数先求交集中互不相同的元素,然后用两个集合互不相同元素个数的和减去,就是并集中的个数#includ...
阅读全文
摘要:Victor and StringTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/262144 K (Java/Others)Total Submission(s): 163 Accepted Submission(...
阅读全文
摘要:Harry and magic stringTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 223 Accepted Submissi...
阅读全文
摘要:Palindromic SubstringTime Limit: 10 Seconds Memory Limit: 65536 KBIn the kingdom of string, people like palindromic strings very much. They like ...
阅读全文
摘要:2160: 拉拉队排练Time Limit: 10 Sec Memory Limit: 259 MBSubmit: 825 Solved: 324[Submit][Status][Discuss]Description艾利斯顿商学院篮球队要参加一年一度的市篮球比赛了。拉拉队是篮球比赛的一个看点,...
阅读全文
摘要:2565: 最长双回文串Time Limit: 10 Sec Memory Limit: 128 MBSubmit: 1377 Solved: 714[Submit][Status][Discuss]Description顺序和逆序读起来完全一样的串叫做回文串。比如acbca是回文串,而abc不...
阅读全文
摘要:3676: [Apio2014]回文串Time Limit: 20 Sec Memory Limit: 128 MBSubmit: 1680 Solved: 707[Submit][Status][Discuss]Description考虑一个只包含小写拉丁字母的字符串s。我们定义s的一个子串t...
阅读全文
摘要:CA Loves PalindromicTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 301 Accepted Submissi...
阅读全文
摘要:Palindromes and Super Abilities 2Time Limit: 1MS Memory Limit: 102400KB 64bit IO Format: %I64d & %I64uStatusDescriptionDima adds letters s1, …, sn one...
阅读全文
摘要:E. Palisectiontime limit per test2 secondsmemory limit per test128 megabytesinputstandard inputoutputstandard outputIn an English class Nick had nothi...
阅读全文
摘要:Number of PalindromesTime Limit: 100MS Memory Limit: 1572864KB 64bit IO Format: %lld & %lluSubmit StatusDescriptionEach palindrome can be always creat...
阅读全文
摘要:C. Cinematime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMoscow is hosting a major international...
阅读全文
摘要:B. Suspectstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAs Sherlock Holmes was investigating ...
阅读全文
摘要:A. Messagetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDr. Moriarty is about to send a messag...
阅读全文
摘要:B. Tracetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day, as Sherlock Holmes was tracking...
阅读全文
摘要:A. Game Outcometime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSherlock Holmes and Dr. Watson pl...
阅读全文
摘要:Greedy TinoTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1194 Accepted Submission(s): 393...
阅读全文
摘要:Ferry LoadingTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 1807 Accepted: 509 Special JudgeDescriptionBefore bridges were common, ferries ...
阅读全文
摘要:Jury CompromiseTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 27314 Accepted: 7208 Special JudgeDescriptionIn Frobnia, a far-away country, ...
阅读全文
摘要:The Twin TowersTime Limit: 2 Seconds Memory Limit: 65536 KBTwin towers we see you standing tall, though a building's lost our faith will never fa...
阅读全文
摘要:Charitable ExchangeTime Limit: 4000/2000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others)Submit StatusHave you ever heard a star charity ...
阅读全文
摘要:1354 - Rubiks时间限制:1秒 内存限制:64兆452 次提交 102 次通过题目描述Isun is a genius. Not only he is an expert in algorithm, but also he plays damn-good in many funny gam...
阅读全文
摘要:Problem 1061 矩阵连乘Accept: 445 Submit: 1699Time Limit: 1000 mSec Memory Limit : 32768 KB Problem Description给定n个矩阵{A1,A2,...,An},考察这n个矩阵的连乘积A1A2....
阅读全文
摘要:Accept: 415 Submit: 1291Time Limit: 1000 mSec Memory Limit : 32768 KB Problem Description工业和医学上经常要用到一种诊断技术——核磁共振成像(Magnetic Resonance Imagers)。利...
阅读全文
摘要:Problem 2099 魔法阵Accept: 120 Submit: 289Time Limit: 1000 mSec Memory Limit : 32768 KB Problem Description两个正三角形和一个圆组成一个魔法阵,如图,圆心和正三角形内心重合,三角形的重叠...
阅读全文
摘要:Problem 2095 水面高度Accept: 40 Submit: 256Time Limit: 1000 mSec Memory Limit : 32768 KB Problem Descriptionkk手上有个长方体,三边长AC,AB,AD分别为a,b,c,现在里面的水高度为...
阅读全文
摘要:Tricks in BitsTime Limit: 1000MS Memory Limit: 65535KB 64bit IO Format: %lld & %lluSubmit StatusDescriptionGiven N unsigned 64-bit integers, you can b...
阅读全文
摘要:Today I want to introduce an interesting game to you. Like eight puzzle, it is a square board with 9 positions, but it filled by 9 numbered tiles. The...
阅读全文
摘要:题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=503背包问题:#include #include #include #include #incl...
阅读全文
摘要:Strange Country IITime Limit: 1 Second Memory Limit: 32768 KB Special JudgeYou want to visit a strange country. There are n cities in the co...
阅读全文
摘要:Process the TasksTime Limit: 1 Second Memory Limit: 32768 KBThere are two machines A and B. There are n tasks, namely task 1, task 2, ..., task n...
阅读全文
摘要:An Awful ProblemTime Limit: 1 Second Memory Limit: 32768 KBIn order to encourage Hiqivenfin to study math, his mother gave him a sweet candy when...
阅读全文
摘要:How many integers can you findTime Limit: 12000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6434 Accepte...
阅读全文
摘要:The Boss on MarsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2494 Accepted Submission(s)...
阅读全文
摘要:Co-primeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3313 Accepted Submission(s): 1286Pr...
阅读全文
摘要:ztr loves substringTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 219 Accepted Submission(...
阅读全文
摘要:B. Little Artem and Dancetime limit per test2 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Artem is fond of ...
阅读全文
摘要:A. Pouring Raintime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA lot of people in Berland hates r...
阅读全文
摘要:B. World Tourtime limit per test5 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputA famous sculptor Cicasso goes to a...
阅读全文
摘要:A. Reberland Linguisticstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFirst-rate specialists gr...
阅读全文
摘要:ztr loves mathTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 133 Accepted Submission(s): 6...
阅读全文