|
||||||||||
Fruit NinjaTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1098 Accepted Submission(s): 536 Problem Description Fruit Ninja is a popular classic game. During the game, fruits will up to the air, and your aim is cut as more fruits as possible with a line. Even if the line touch a point of a fruit, the fruit also be cut. Input The first line is a number T(1<=T<=30), represents the number of case. The next T blocks follow each indicates a case. The first line of each case contains one integer N (1<=N<=10) Then N lines follow, each line contains a integer K(3<=K<=10), represent the number points of the fruit, then K*2 integers follow, each two integers represent one point of the fruit.(with anticlockwise order) I promise all fruits are convex polygon, and any two fruit have no common point. Output For each case, output the number of case and the maximum fruits you could cut with a line.(as shown in the sample output) Sample Input
Sample Output
Author NotOnlySuccess Source | ||||||||||
|