[语言月赛 202411] Legends Never Die

Luogu
IDLGB4053
Time1000ms
Memory512MB
DifficultyP1
2024语言月赛
在《迪迪卫》中,每位英雄拥有战力 $A$,坦度 $B$,担当 $C$。 小 Z 有一个评估参数 $K$,他将使用 $A, B, C$ 评价一位英雄: - 如果 $A+B\ge K$,则这位英雄是**全能王**。 - 如果 $A+C\ge K$,则这位英雄是**主力骨**。 - 如果 $B+C\ge K$,则这位英雄是**可靠者**。 给你一位英雄的三个数值与评估参数,请你依次判断这位英雄是否是**全能王**、**主力骨**、**可靠者**。如果是,输出 `Yes`,否则,输出 `No`。 ## Input 一行四个整数 $A,B,C,K$,分别表示这位英雄的战力、坦度、担当。 ## Output 共三行,每行一个字符串 `Yes` 或 `No`,依次表示这位英雄是否是**全能王**,**主力骨**,**可靠者**。 [samples] ## Note ### 样例 #1 解释 对这位英雄,有 $A = 1, B = 3, C = 4, K = 5$。 - $A + B = 1 + 3 = 4 < 5$,因此这位英雄不是**全能王**。 - $A + C = 1 + 4 = 5 \geq 5$,因此这位英雄是**主力骨**。 - $B + C = 3 + 4 = 7 \geq 5$,因此这位英雄是**可靠者**。 因此依次输出 `No`、`Yes`、`Yes`。 ### 数据范围 对于 $100\%$ 的数据,$0\le A,B,C,K\le 100$。 对于 $20\%$ 的数据,$K=0$。 另有 $20\%$ 的数据,$B=C=0$。
Samples
Input #1
1 3 4 5
Output #1
No
Yes
Yes
Input #2
2 3 1 0
Output #2
Yes
Yes
Yes
Input #3
7 0 0 5
Output #3
Yes
Yes
No
API Response (JSON)
{
  "problem": {
    "name": "[语言月赛 202411] Legends Never Die",
    "description": {
      "content": "在《迪迪卫》中,每位英雄拥有战力 $A$,坦度 $B$,担当 $C$。 小 Z 有一个评估参数 $K$,他将使用 $A, B, C$ 评价一位英雄: - 如果 $A+B\\ge K$,则这位英雄是**全能王**。 - 如果 $A+C\\ge K$,则这位英雄是**主力骨**。 - 如果 $B+C\\ge K$,则这位英雄是**可靠者**。 给你一位英雄的三个数值与评估参数,请你依次判断这位英雄是否",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 524288
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGB4053"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "在《迪迪卫》中,每位英雄拥有战力 $A$,坦度 $B$,担当 $C$。\n\n小 Z 有一个评估参数 $K$,他将使用 $A, B, C$ 评价一位英雄:\n\n- 如果 $A+B\\ge K$,则这位英雄是**全能王**。\n- 如果 $A+C\\ge K$,则这位英雄是**主力骨**。\n- 如果 $B+C\\ge K$,则这位英雄是**可靠者**。\n\n给你一位英雄的三个数值与评估参数,请你依次判断这位英雄是否...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments