中间数
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.