摘要:How far away ? Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10412 Accepted Submission(s): 3777
阅读全文
摘要:Distance Queries Time Limit: 2000MS Memory Limit: 30000K Total Submissions: 11304 Accepted: 3985 Case Time Limit: 1000MS Description Farmer John's cow
阅读全文
摘要:Closest Common Ancestors Time Limit: 2000MS Memory Limit: 10000K Total Submissions: 18013 Accepted: 5774 Description Write a program that takes as inp
阅读全文
摘要:Nearest Common Ancestors Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 23388 Accepted: 12195 Description A rooted tree is a well-known da
阅读全文
摘要:迷宫城堡 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11070 Accepted Submission(s): 4948 Problem D
阅读全文
摘要:Description Input Output Sample Input Sample Output 下面是kosaraju算法
阅读全文
摘要:Popular Cows Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 28379 Accepted: 11488 Description Every cow's dream is to become the most popu
阅读全文
摘要:Road Construction Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 10352 Accepted: 5140 Description It's almost summer time, and that means
阅读全文
摘要:SPF Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 7406 Accepted: 3363 Description Consider the two networks shown below. Assuming that da
阅读全文
摘要:Network Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 7943 Accepted: 2893 Description A network administrator manages a large network. Th
阅读全文
摘要:Redundant Paths Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11514 Accepted: 4946 Description In order to get from one of the F (1 <= F
阅读全文
摘要:Network Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 11378 Accepted: 5285 Description A Telephone Line Company (TLC) is establishing a n
阅读全文
摘要:问题描述抗日战争时期,冀中平原的地道战曾发挥重要作用。地道的多个站点间有通道连接,形成了庞大的网络。但也有隐患,当敌人发现了某个站点后,其它站点间可能因此会失去联系。我们来定义一个危险系数DF(x,y):对于两个站点x和y (x != y), 如果能找到一个站点z,当z被敌人破坏后,x和y不连通,那...
阅读全文
摘要:畅通工程再续Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 21693Accepted Submission(s): 6856Problem Des...
阅读全文
摘要:Arctic NetworkTime Limit:2000MSMemory Limit:65536KTotal Submissions:14977Accepted:4777DescriptionThe Department of National Defence (DND) wishes to co...
阅读全文
摘要:NetworkingTime Limit:1000MSMemory Limit:10000KTotal Submissions:7753Accepted:4247DescriptionYou are assigned to design network connections between cer...
阅读全文
摘要:CandiesTime Limit:1500MSMemory Limit:131072KTotal Submissions:27051Accepted:7454DescriptionDuring the kindergarten days, flymouse was the monitor of h...
阅读全文
摘要:Invitation Cards Time Limit: 8000MS Memory Limit: 262144K Total Submissions: 23357 Accepted: 7675 Description In the age of television, not many peopl
阅读全文
摘要:MPI Maelstrom Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 7471 Accepted: 4550 Description BIT has recently taken delivery of their new
阅读全文
摘要:Cow ContestTime Limit:1000MSMemory Limit:65536KTotal Submissions:8794Accepted:4948DescriptionN(1 ≤N≤ 100) cows, conveniently numbered 1..N, are partic...
阅读全文
摘要:Wormholes Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 39078 Accepted: 14369 Description While exploring his many farms, Farmer John has
阅读全文
摘要:Currency Exchange Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 24243 Accepted: 8813 Description Several currency exchange points are wor
阅读全文
摘要:Silver Cow Party Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 16405 Accepted: 7503 Description One cow from each of N farms (1 ≤ N ≤ 100
阅读全文
摘要:Heavy Transportation Time Limit: 3000MS Memory Limit: 30000K Total Submissions: 26442 Accepted: 7044 Description Background Hugo Heavy is happy. After
阅读全文
摘要:Frogger Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 32257 Accepted: 10396 Description Freddy Frog is sitting on a stone in the middle o
阅读全文
摘要:算法提高 道路和航路 时间限制:1.0s 内存限制:256.0MB问题描述农夫约翰正在针对一个新区域的牛奶配送合同进行研究。他打算分发牛奶到T个城镇(标号为1..T),这些城镇通过R条标号为(1..R)的道路和P条标号为(1..P)的航路相连。每一条公路i或者航路i表示成连接城镇Ai(1Bi的单向...
阅读全文
摘要:Til the Cows Come Home Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 38556 Accepted: 13104 Description Bessie is out in the field and wan
阅读全文
摘要:Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3114 Accepted Submission(s): 846
阅读全文
摘要:Big StringTime Limit:1000MSMemory Limit:131072KTotal Submissions:6346Accepted:1525DescriptionYou are given a string and supposed to do some string man...
阅读全文
摘要:Mobile phonesTime Limit:5000MSMemory Limit:65536KTotal Submissions:17176Accepted:7920DescriptionSuppose that the fourth generation mobile phone base s...
阅读全文
摘要:Japan Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 24151 Accepted: 6535 Description Japan plans to welcome the ACM ICPC World Finals and
阅读全文
摘要:CowsTime Limit:3000MSMemory Limit:65536KTotal Submissions:15405Accepted:5133DescriptionFarmer John's cows have discovered that the clover growing alon...
阅读全文
摘要:Ping pong Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 2641 Accepted: 978 Description N(3<=N<=20000) ping pong players live along a west
阅读全文
摘要:Lost CowsTime Limit:1000MSMemory Limit:65536KTotal Submissions:10695Accepted:6865DescriptionN (2 =0;i--) { int pos=seek(deg[i]+1); ...
阅读全文
摘要:Buy TicketsTime Limit:4000MSMemory Limit:65536KTotal Submissions:17077Accepted:8466DescriptionRailway tickets were difficult to buy around the Lunar N...
阅读全文
摘要:Can you answer these queries?Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 11333Accepted Submiss...
阅读全文
摘要:Assign the task Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2008 Accepted Submission(s): 895
阅读全文
摘要:---恢复内容开始---Tunnel WarfareTime Limit:2000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionDuring the War of Resistance Against Japan, tun...
阅读全文
摘要:标题:Log大侠 atm参加了速算训练班,经过刻苦修炼,对以2为底的对数算得飞快,人称Log大侠。 一天,Log大侠的好友 drd 有一些整数序列需要变换,Log大侠正好施展法力... 变换的规则是: 对其某个子序列的每个整数变为: [log_2 (x) + 1] 其中 [] 表示向下取整,就是对每
阅读全文
摘要:Can you answer these queries? Crawling in process... Crawling failed Time Limit:2000MS Memory Limit:65768KB 64bit IO Format:%I64d & %I64uTime Limit:20
阅读全文
摘要:Balanced LineupCrawling in process... Crawling failed Time Limit:5000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uTime Limit:5000MS Memory Lim...
阅读全文
摘要:DescriptionPainting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones.Your task is counting...
阅读全文
摘要:Just a HookTime Limit:2000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionIn the game of DotA, Pudge’s meat hook is actually the most ho...
阅读全文
摘要:Mayor's posters Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Description The citizens of Bytetown, AB, could not stand that th
阅读全文
摘要:Phone List Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 26385 Accepted: 7957 Description Given a list of phone numbers, determine if it
阅读全文
摘要:统计难题 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 27876 Accepted Submission(s): 11120 Problem
阅读全文
摘要:Hat’s Words Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11894 Accepted Submission(s): 4239 Pr
阅读全文
摘要://用map映射TLE,字典树就AC了#include"cstdio"#include"set"using namespace std;const int MAXN=510005;const int N=26;//26个小写英文字母 struct node{ int val;//存放字符串的h...
阅读全文