A Knight's JourneyTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 25493 Accepted: 8686DescriptionBackground The knight is getting bored of seeing the same black and white squares again and again and has decided to make a journey around the
Children of the Candy CornTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8062 Accepted: 3529DescriptionThe cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the maze facing zombies,
Max SumTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 108343 Accepted Submission(s): 24950Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum
Problem AAlmost Union-FindI hope you know the beautiful Union-Find structure. In this problem, you're to implement something similar, but not identical.The data structure you need to write is also a collection of disjoint sets, supporting 3
RescueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9912 Accepted Submission(s): 3626Problem DescriptionAngel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is
#include<stdio.h>#include<string.h>typedef struct student{ char name[60]; int score;}ss;int main(){ int N,i,j,flag,flag1,flag2; ss stu1[500],stu2[500]; char temp[60]; int tmp; while(scanf("%d",&N)!=EOF)
FDNY to the Rescue!Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 2175 Accepted: 655DescriptionThe Fire Department of New York (FDNY) has always been proud of their response time to fires in New York City, but they want to make their
Oil DepositsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6187 Accepted Submission(s): 3590Problem DescriptionThe GeoSurvComp geologic survey company is responsible for detecting
A. Even Oddstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBeing a nonconformist, Volodya is displeased with the current state of things, particularly with the order of natural numbers (natural
ArbitrageTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 12809 Accepted: 5414DescriptionArbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. For
The DoorsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 5258 Accepted: 2140DescriptionYou are to find the length of the shortest path through a chamber containing obstructing walls. The chamber will always have sides at x = 0, x = 10, y =
RaidTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 7075 Accepted: 2098DescriptionAfter successive failures in the battles against the Union, the Empire retreated to its last stronghold. Depending on its powerful defense system, the Empire
Heavy CargoTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2696 Accepted: 1498DescriptionBig Johnsson Trucks Inc. is a company specialized in manufacturing big trucks. Their latest model, the Godzilla V12, is so big that the amount of
Stockbroker GrapevineTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 23282 Accepted: 12738DescriptionStockbrokers are known to overreact to rumours. You have been contracted to develop a method of spreading disinformation amongst the