[PA 2024] Kto wygrał?

Luogu
IDLGP10352
Time2000ms
Memory1024MB
DifficultyP1
2024PA(波兰)
**题目译自 [PA 2024](https://sio2.mimuw.edu.pl/c/pa-2024-1/dashboard/) Runda 1 [Kto wygrał?](https://sio2.mimuw.edu.pl/c/pa-2024-1/p/kto/)** Algosia 和 Bytie 喜欢在 PA 中一较高下。在线上比赛中,有 $18$ 道题需要解决,每道题可获得 $0$ 到 $10$ 分。参赛者按总得分排序。如果积分相同,则在更多题中获得 $10$ 分的选手排名靠前。如果再次出现同分情况,则在更多题中获得 $9$ 分的选手排名靠前,依此类推。如果无法通过这种方式区分选手,则宣布他们之间打成平手。 Algosia 和 Bajtek 还记得上届比赛所有任务的得分,但他们不记得……谁赢了。你能帮他们编写一个程序,读取他们的成绩,并告诉他们谁的名次更高吗? ## Input 第一行包含区间 $[0, 10]$ 内的 $18$ 个整数,表示 Algosia 在每道题上的得分。 第二行也包含区间 $[0, 10]$ 内的 $18$ 个整数,表示 Bajtek 在每道题上的得分。 ## Output 输出一行一个单词——`Algosia` 或 `Bajtek`,表示获胜者的名字。如果出现平局,则输出 `remis`(波兰语中平局的意思)。 [samples] ## Background PA 2024 1C ## Note 虽然 Algosia 和 Bytie 的得分都是 $161$ 分,但根据 PA 规则,Algosia 的排名更高。
Samples
Input #1
10 10 7 10 10 10 10 10 10 10 10 10 0 10 4 10 10 10
10 10 10 10 10 10 10 10 10 10 10 10 4 3 4 10 10 10
Output #1
Algosia
API Response (JSON)
{
  "problem": {
    "name": "[PA 2024] Kto wygrał?",
    "description": {
      "content": "**题目译自 [PA 2024](https://sio2.mimuw.edu.pl/c/pa-2024-1/dashboard/) Runda 1 [Kto wygrał?](https://sio2.mimuw.edu.pl/c/pa-2024-1/p/kto/)** Algosia 和 Bytie 喜欢在 PA 中一较高下。在线上比赛中,有 $18$ 道题需要解决,每道题可获得 $0$ 到",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 1048576
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGP10352"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "**题目译自 [PA 2024](https://sio2.mimuw.edu.pl/c/pa-2024-1/dashboard/) Runda 1 [Kto wygrał?](https://sio2.mimuw.edu.pl/c/pa-2024-1/p/kto/)**\n\nAlgosia 和 Bytie 喜欢在 PA 中一较高下。在线上比赛中,有 $18$ 道题需要解决,每道题可获得 $0$ 到...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments