土拨鼠军训后遗症
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.
条件结构, 入门鼠赛# Background
一二三四, 一二三四, 悲催的军训终于结束了
Description
土拨鼠昊昊终于结束了悲催的军训, 他每天喊口号"一二三四", 结果他染上了严重的后遗症, 他看到任何数字, 都想看看这个数字是由哪四个连续数字相加得到的
比如10, 他会计算得到10 = 1 + 2 + 3 +4得到.
但是11, 就无法通过连续的4个自然数相加得到.
Format
Input
一个整数, 保证在int范围以内
Output
如果这个数字可以通过连续的四个自然数相加得到, 则输出这些自然数相加的算式
如果无法得到则输出"no answer"
Samples
10
1+2+3+4
11
no answer
Limitation
1s, 1024KiB for each test case.
非常好看
- Status
- Done
- Rule
- Ledo
- Problem
- 40
- Start at
- 2025-1-24 16:45
- End at
- 2025-4-18 0:45
- Duration
- 2000 hour(s)
- Host
- Partic.
- 17