摘要: Problem description An elephant decided to visit his friend. It turned out that the elephant's house is located at point 0 and his friend's house is l 阅读全文
posted @ 2018-06-07 12:36 霜雪千年 阅读(339) 评论(0) 推荐(0) 编辑
摘要: Problem description For a positive integer n let's define a function f: f(n) = - 1 + 2 - 3 + .. + ( - 1)nn Your task is to calculate f(n) for a given 阅读全文
posted @ 2018-06-07 12:30 霜雪千年 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Problem description Little Petya very much likes gifts. Recently he has received a new laptop as a New Year gift from his mother. He immediately decid 阅读全文
posted @ 2018-06-07 12:20 霜雪千年 阅读(859) 评论(0) 推荐(0) 编辑