Type: Default 1000ms 256MiB

等边三角形

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

问题描述

有n根小木棒,现在这些小木棒不能被切制,但是可以头尾拼接在一起,请问能否组成一个等边三角形?(小木棍必须用完)

输入

输入一个整数n表示有n根木棍(n<=20) 接下来n个数字ai分别表示每根木棍的长度(ai<=10000)

输出

若能则输出yes否则输出no

5
1 2 3 4 5
yes

Limitation

1s, 1024KiB for each test case.

9.27(dfs)

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
7
Start at
2025-9-19 13:00
End at
2025-10-6 5:00
Duration
400 hour(s)
Host
Partic.
4