[求助]一道ACM竞赛题
1.Four in row Given a positive integer,tell wherther it is equal to the sum of four consecutive integers.
Input
A positive integer(<2的31次幂),each case will be on separate line .A zero(0)denotes the end of input.
Output
The phrase"is not the sum of four consecutive integers"or the phrase"is the sum of four consecutive integer "where is the number in qusetion.
Example
in this example,2=-1+0+1+2,and82=19+20+21+22,5 and 41are not of the correct form.
Input
2
5
41
82
0
Output
2 is the sum of four consecutive integers.
5 is not the sum of four consecutive integers.
41 is not the sum of four consecutive integers.
82 is the sum of four consecutive integers