Kalevich Strikes Back W - Kalevich Strikes Back Time Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u SubmitStatus Description And yet again the Berland community can see that talent is alwa
POJ 2486 Apple Tree Apple Tree Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7120 Accepted: 2370 Description Wshxzt is a lovely girl. She likes apple very much. One day HX tak
POJ 2404 Jogging Trails Jogging Trails Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 2122 Accepted: 849 Description Gord is training for a marathon. Behind his house is a park wit
POJ 2057 The Lost House The Lost House Time Limit: 3000MS Memory Limit: 30000K Total Submissions: 2140 Accepted: 886 Description One day a snail climbed up to a big tree and finally came to th
POJ 1952 BUY LOW, BUY LOWER BUY LOW, BUY LOWER Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 8311 Accepted: 2883 Description The advice to "buy low" is half the formula to success i
POJ 1946 Cow Cycling Cow Cycling Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 2516 Accepted: 1396 Description The cow bicycling team consists of N (1 Like everyone else,
POJ 1848 Tree Tree Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 3506 Accepted: 1204 Description Consider a tree with N vertices, numbered from 1 to N. Add, if it is p
POJ 1828 Monkeys' Pride Monkeys' Pride Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 8640 Accepted: 2854 Description Background There are a lot of monkeys in a mountain. Every
POJ 1770 Special Experiment Special Experiment Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 1790 Accepted: 601 Description As we know, an atom can be in different energy states (or
POJ 1322 Chocolate Chocolate Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 8245 Accepted: 2186 Special Judge Description In 2100, ACM chocolate will be one of the favorit
POJ 1191 棋盘分割 棋盘分割 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 11938 Accepted: 4207 Description 将一个8*8的棋盘进行如下分割:将原棋盘割下一块矩形棋盘并使剩下部分也是矩形,再将剩下的部分继续如此分割,这样割了(n-1)次后,连同最后剩下
POJ 1141 Brackets Sequence Brackets Sequence Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 24393 Accepted: 6885 Special Judge Description Let us define a regular brackets seque
POJ 1038 Bugs Integrated, Inc. Bugs Integrated, Inc. Time Limit: 15000MS Memory Limit: 30000K Total Submissions: 8825 Accepted: 3381 Case Time Limit: 5000MS Description Bugs Integrated, Inc. i
POJ 1015 Jury Compromise Jury Compromise Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 24463 Accepted: 6358 Special Judge Description In Frobnia, a far-away country, the verd
POJ 2187 Beauty Contest Beauty Contest Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 26743 Accepted: 8258 Description Bessie, Farmer John's prize cow, has just won first place i
HDU 3038 How Many Answers Are Wrong http://acm.hdu.edu.cn/showproblem.php?pid=3038 这是一道并查集题目,这并查集感觉好难写,构思花了我很长很长时间,不过打码时间很短。考虑清楚之后明显快多了 #include #include #include #include #include #include #include #define N 200010 using names
UVa 11437 - Triangle Fun 该学一下用向量求交点坐标了。 #include #include #include #include #include #include #define eqs 1e-8 using namespace std; double a = 2.0/3; double b = 1.0/3; int main() { //freopen("data.txt","r",stdin);
POJ 3277 City Horizon City Horizon Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 15769 Accepted: 4276 Description Farmer John has taken his cows on a trip to the city! As the
POJ 1765 November Rain November Rain Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 2097 Accepted: 448 Case Time Limit: 2000MS Description Contemporary buildings can have v