Robotic SortTime Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1102 Accepted Submission(s): 451Problem DescriptionSomewhere deep in the Czech Technical University buildings, there are
Big Event in HDUTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9211 Accepted Submission(s): 3192Problem DescriptionNowadays, we all know that Computer College is the biggest department in
Cookie ChoiceTime Limit: 2 Seconds Memory Limit: 32768 KBMM enjoyed cookies very much. On Saint Valentine's Day, when she stepped into a big cookie store again, she wouldn't leave unless DD spent all his money in pocket!There are N kinds of
DescriptionLittle Tom loves playing games. One day he downloads a little computer game called 'Bloxorz' which makes him excited. It's a game about rolling a box to a specific position on a special plane. Precisely, the plane, which is composed of
題目地址:http://acm.hdu.edu.cn/showproblem.php?pid=3037Lucas定理A、B是非負整數,p是質數。A B寫成p進位:A=a[n]a[n-1]...a[0],B=b[n]b[n-1]...b[0]。則組合數C(A,B)與C(a[n],b[n])*C(a[n-1],b[n-1])*...*C(a[0],b[0]) mod p同餘即:Lucas(n,m,p)=C(n%p,m%p)*Lucas(n/p,m/p,p) AC代碼:#include
Crazy CircuitsTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 154 Accepted Submission(s): 62Problem DescriptionYou’ve just built a circuit board for your new robot, and now you need to power
Eat the TreesTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1012 Accepted Submission(s): 480Problem DescriptionMost of us know that in the game called DotA(Defense of the Ancient), Pudge is
PostersTime Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2312 Accepted Submission(s): 515Problem DescriptionTed has a new house with a huge window. In this big summer, Ted decides to decorate
Leapin' LizardsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 208 Accepted Submission(s): 88Problem DescriptionYour platoon of wandering lizards has entered a strange room in the labyrinth
Finding NemoTime Limit: 2000MS Memory Limit: 30000KTotal Submissions: 6869 Accepted: 1571DescriptionNemo is a naughty boy. One day he went into the deep sea all by himself. Unfortunately, he became lost and couldn't find his way home. Therefore, he
BudgetTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 3250 Accepted: 1227 Special JudgeDescriptionWe are supposed to make a budget proposal for this multi-site competition. The budget proposal is a matrix where the rows represent different
Problem Statement Surrounding Game is a single-player game played on a rectangular grid of cells. Cells are considered adjacent if they share a common side. (Hence, each cell has at most four adjacent cells. The cells on the sides and in the corners
The Fewest CoinsTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 2517 Accepted: 738DescriptionFarmer John has gone to town to buy some farm supplies. Being a very efficient man, he always pays for his goods in such a way that the smallest
D. Parking Lottime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputNowadays it is becoming increasingly difficult to park a car in cities successfully. Let's imagine a segment of a street as long as L
Cheat SecretlyTime Limit: 1 Sec Memory Limit: 128 MBSubmissions: 269 Solved: 77DescriptionHH Big Cow(HBC) has taken part in an interesting treasure finding match.In the match there are N transmitting nodes(labeled from 1 to N), and between these
Electric System RestoreTime Limit: 1000 ms Memory Limit: 65536 kB Solved: 32 Tried: 311SubmitStatusBest SolutionBackDescriptionAfter building and improving the traffic system of Country X, Qiqi wants to restore the electric system. Every City in