Advertisement

POJ2362题解:《Square》

阅读量:

Description

Given a collection of sticks with different lengths, can someone join them by connecting their ends to create a square shape?

Input

The initial line comprises N, representing the number of test cases. Each test case starts with an integer M (where M is between 4 and 20 inclusive), signifying the count of sticks. Following this are M integers, each indicating the length of a stick. The lengths are integers ranging from 1 to 10,000.

Output

针对每个情况,请输出一行包含'是'的字符串,如果能够形成一个正方形;否则请输出'否'。

Sample Input

复制代码

Sample Output

复制代码
复制代码
复制代码
复制代码
复制代码
 #include<iostream

全部评论 (0)

还没有任何评论哟~