CF2172A.ASCII Art Contest

入门

通过率:0%

时间限制:1.00s

内存限制:256MB

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

Three leading AI-powered creative assistants—Gemini, ChatGPT, and Claude—enter the first ever ASCII Art Contest, where they must impress a panel of human judges with their text-based masterpieces.

Each participant receives a score between 80 and 100 (inclusive). The organizers want to announce the final standing only if the judges' opinions are "close enough"; otherwise, they will ask the judges to reconsider.

Given the three integer scores of Gemini, ChatGPT, and Claude, determine the contest result:

  • If the maximum score and the minimum score differ by at least 10 points, print check again (the judging seems inconsistent, so the panel must re-evaluate).
  • Otherwise, print final X, where X is the median of the three scores (the score that would be in the middle if all three were sorted in non-decreasing order).

三款领先的AI创意助手——Gemini、ChatGPT 和 Claude——参加首届 ASCII 艺术大赛,它们需以纯文本形式创作出杰作,打动人类评委团。

每位参赛者获得一个介于 80 到 100(含)之间的整数分数。主办方仅在评委意见“足够接近”时才公布最终排名;否则,将要求评委重新审议。

给定 Gemini、ChatGPT 和 Claude 的三个整数分数,请判定比赛结果:

  • 若最高分与最低分之差至少为 10 分,则输出 check again(表明评分不一致,评委团必须重新评估);
  • 否则,输出 final X,其中 XX 是这三个分数的中位数(即三个分数按非递减顺序排序后位于中间位置的分数)。

输入格式

A single line contains three integers g,c,ℓg, c, \ell, representing the scores of Gemini, ChatGPT, and Claude respectively.

  • 80≤g,c,ℓ≤10080\le g, c, \ell \le 100

一行包含三个整数 g,c,ℓg, c, \ell,分别表示双子座(Gemini)、ChatGPT 和 Claude 的得分。

  • 80≤g,c,ℓ≤10080\le g, c, \ell \le 100

输出格式

Print the required answer in a line.

在一行中输出所需答案。

输入输出样例

  • 输入#1

    88 94 95

    输出#1

    final 94
  • 输入#2

    100 80 81

    输出#2

    check again
  • 输入#3

    98 99 98

    输出#3

    final 98
  • 输入#4

    95 86 85

    输出#4

    check again

输入解题思路,AI测评打分。不知道怎么写?

首页