B. 2025mzwc中庸之道

    Type: Default 1000ms 256MiB

2025mzwc中庸之道

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.

中庸之道

题目背景

昔者仲尼观于鲁桓公之庙,见有欹器焉。弟子问其用,夫子曰:"虚则欹,中则正,满则覆。唯守中道,方得长久。"今有君子三人,各持数珠一枚,其珠数或一或二或三。请子择其不偏不倚者,以彰中庸之义。

题目描述

给定三枚数珠,其值皆为1、2、3三者之一。请找出其中不偏不倚的中间之数(即三数排序后居于中位者)。

输入格式

一行三个整数,以空格分隔,表示三枚数珠的数值。

输出格式

一行一个整数,表示居中之数。

2 3 1
2

蒙自市2025年冬令营结营测试

Not Attended
Status
Done
Rule
IOI
Problem
6
Start at
2025-2-20 14:30
End at
2025-2-20 16:30
Duration
2 hour(s)
Host
Partic.
66