正方形
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
7
1 2 3 4 5 6 7
yes
Limitation
1s, 1024KiB for each test case.
9.27(dfs)
- 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