D. N数之和(三)

    Type: Default 1000ms 256MiB

N数之和(三)

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.

题目描述

分别求出 1n1~n 中偶数和奇数的和。

输入格式

一个正整数 nn

输出格式

一行,两个数,分别表示偶数之和、奇数之和,中间以一个空格隔开。

样例 #1

样例输入 #1

10

样例输出 #1

30 25

数据范围

1n1000001 \le n \le 100000

随堂小测

Not Attended
Status
Done
Rule
IOI
Problem
5
Start at
2025-11-8 8:45
End at
2025-12-8 8:45
Duration
1.5 hour(s)
Host
Partic.
29