吉林大学ACM1005题及其他.docVIP

  • 2
  • 0
  • 约1.16万字
  • 约 14页
  • 2016-12-03 发布于江西
  • 举报
吉林大学ACM1005题及其他

1005: Four in a Row Result TIME Limit MEMORY Limit Run Times AC Times JUDGE 3s 16384K 9239 2962 Standard Given a positive integer, tell whether it is equal to the sum of four consecutive integers. Input A positive integer(231), each case will be on a 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 integers.”, where is the number in question. Example In this example, 2 = -1 + 0 + 1 + 2, and 82 = 19 + 20 + 21 + 22. 5 and 41 are not of the correct form. Input 2 5 41 82 0 Outpu

文档评论(0)

1亿VIP精品文档

相关文档