[语言月赛 202307] 数字判断

Luogu
IDLGB3804
Time1000ms
Memory512MB
DifficultyP1
2023O2优化顺序结构分支结构语言月赛
给定三个整数 $a, b, c$,请你判断它们是否满足如下**所有**条件: 1. $a + b + c \leq 100$。 2. $b$ 是 $5$ 的倍数。 3. $c$ 是 $7$ 的倍数。 3. $a - b > b - c$。 如果上述条件均满足,请输出 $\texttt{Yes}$,否则输出 $\texttt{No}$。 ## Input 输入只有一行三个整数,依次表示 $a,b,c$。 ## Output 输出一行一个字符串表示答案。 [samples] ## Background 请注意,本题只有通过全部测试点才能获得分数。 ## Note ### 数据规模与约定 **本题采用捆绑测试,只有通过全部测试点才能获得分数**。 对全部的测试点,保证 $0 \leq a, b, c < 2^{31}$。
Samples
Input #1
50 10 7
Output #1
Yes
Input #2
100 100 100
Output #2
No
API Response (JSON)
{
  "problem": {
    "name": "[语言月赛 202307] 数字判断",
    "description": {
      "content": "给定三个整数 $a, b, c$,请你判断它们是否满足如下**所有**条件: 1. $a + b + c \\leq 100$。 2. $b$ 是 $5$ 的倍数。 3. $c$ 是 $7$ 的倍数。 3. $a - b > b - c$。 如果上述条件均满足,请输出 $\\texttt{Yes}$,否则输出 $\\texttt{No}$。",
      "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": "LGB3804"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "给定三个整数 $a, b, c$,请你判断它们是否满足如下**所有**条件:\n\n1. $a + b + c \\leq 100$。\n2. $b$ 是 $5$ 的倍数。\n3. $c$ 是 $7$ 的倍数。\n3. $a - b > b - c$。\n\n如果上述条件均满足,请输出 $\\texttt{Yes}$,否则输出 $\\texttt{No}$。\n\n## Input\n\n输入只有一行三个整数,依次表示 $a...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments