[语言月赛 202309] 等式判断

Luogu
IDLGB3853
Time1000ms
Memory512MB
DifficultyP1
2023O2优化分支结构语言月赛
给出三个整数 $a,b,c$,保证 $b \neq 0$。 - 如果 $a + b = c$,请你输出 $\texttt{plus}$。 - 如果 $a - b = c$,请你输出 $\texttt{minus}$。 - 如果以上两条均不满足,请输出 $\texttt{illegal}$。 ## Input 输入只有一行三个整数,依次表示 $a,b,c$。 ## Output 输出一行一个字符串表示答案。 [samples] ## Note ### 数据规模与约定 对全部的测试点,保证 $-2^{31} \leq a,b,c < 2^{31}$,$b \neq 0$。
Samples
Input #1
1 2 3
Output #1
plus
Input #2
3 2 1
Output #2
minus
Input #3
1 1 4
Output #3
illegal
API Response (JSON)
{
  "problem": {
    "name": "[语言月赛 202309] 等式判断",
    "description": {
      "content": "给出三个整数 $a,b,c$,保证 $b \\neq 0$。 - 如果 $a + b = c$,请你输出 $\\texttt{plus}$。 - 如果 $a - b = c$,请你输出 $\\texttt{minus}$。 - 如果以上两条均不满足,请输出 $\\texttt{illegal}$。",
      "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": "LGB3853"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "给出三个整数 $a,b,c$,保证 $b \\neq 0$。\n\n- 如果 $a + b = c$,请你输出 $\\texttt{plus}$。\n- 如果 $a - b = c$,请你输出 $\\texttt{minus}$。\n- 如果以上两条均不满足,请输出 $\\texttt{illegal}$。\n\n## Input\n\n输入只有一行三个整数,依次表示 $a,b,c$。\n\n## Output\n\n输出一行一...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments