1947: Integer summation
内存限制:128 MB
时间限制:1.000 S
评测方式:文本比较
命题人:
提交:32
解决:22
题目描述
Given an integer N, request to take the sum of all integers in the range [0,N] that are divisible by 4.
输入
There are several lines of input, each line input 1 integer N (N≥1).
输出
The sum of all integers within N that is divisible by 4.
样例输入 复制
10
15
31
样例输出 复制
12
24
112