A. 中间数

    Type: Default 1000ms 256MiB

中间数

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.

问题描述

依次读入若干正整数,如果是奇数个就输出最中间的那个数;否则,输出中间两个数的和。以 0 作为结束标志,但 0 不计数。

Format

输入

若干正整数

输出

中间数

Samples

5 7 2 4 3 1 6 0
4

Limitation

1s, 1024KiB for each test case.

vector

Not Claimed
Status
Done
Problem
4
Open Since
2024-11-23 21:30
Deadline
2024-12-7 0:30
Extension
24 hour(s)