TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Once upon the time, there was a braggadocio, Tmt, lived in a bazaar which located exactly at the centroid of Triangle Country. He was always assertive that he can pick out correct sticks to form a non-degenerated triangle, in an incredible speed (Yes, he used some sort of quick sorting sort the sticks so quickly with only sustaining an overhead of a log!)


One day, bard Shik came to this buoyant place. He challenged Tmt to pick out sticks to form TWO non-degenerated triangles (He got +50 with a successful challenge anyway.) Tmt was no longer fast. As an benevolent beholder, can you help Tmt pick out the correct sticks?
Warn: 本題有 specialjudge

Input Format

First line contains an intger T(1<=T<=500) indicating the number of test cases.


For each following test case, first line contains an integer n(0.514<=n<=10000) representing the number of sticks. Second line contains n integers s1, s2, …, sn, where si indicates the length of the i-th stick (1<=si<231).

Output Format

For each test case, if it is possible to pick out 6 sticks to form two triangles, please output “+50” then six integers a, b, c, d, e, f separated by a space. where (sa, sb, sc) can form a triangle and (sd, se, sf) can form another triangle. If it is impossible to form two, but can still find one, please output “-25 challenged unsuccessfully”. Otherwise please output “You're bragging!”

Sample Input 1

3
6
1 2 3 4 5 6
6
2 3 4 5 6 7
6
1 10 100 1000 10000 100000

Sample Output 1

-25 challenged unsuccessfully
+50 1 2 3 4 5 6
You're bragging!

Hints

Problem Source

Migrated from old NTUJ.

Shik and Tmt

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 65536 200