TaekwondoTime Limit: 2 Seconds Memory Limit: 65536 KBAlice is very fond of Taekwondo and he is also a member of Taekwondo Association of Zhejiang University. One day, his friends decide to compare with him. Now Alice must face all of his
Error CurvesTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 860 Accepted Submission(s): 322Problem DescriptionJosephina is a clever girl and addicted to Machine Learning recently. Shepays
Binary NumberTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 472 Accepted Submission(s): 313Problem DescriptionFor 2 non-negative integers x and y, f(x, y) is defined as the number of
BridgeTime Limit: 2 Seconds Memory Limit: 65536 KB Special Judgen people wish to cross a bridge at night. A group of at most two people may cross at any time, and each group must have a flashlight. Only one flashlight is available among
Phage WarTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 721 Accepted Submission(s): 382Problem DescriptionPhage War is a little flash game. In this game, we want infect all cells by the
Magic SquaresTime Limit: 2 Seconds Memory Limit: 65536 KBOne day, the astronauts from China arrived in a planet that they have never been before. First, they sent a robot called AAA to explore the environment as usual.However, AAA became
貪心題,只要每一步都保證B的費用小於等於A的費用,則一直用B方案,否則用A方案結束,唯一值得注意的是在B方案減半時不能使N的值小於M的值(題目中有要求)。代碼如下:#include<iostream>#include<cstdlib>#include<cstring>#include<cstdio>#include<cmath>using namespace std;struct agency{ int A, B, V;