P27853 [洛谷] [Language Monthly Contest 202307] Number Judgment
普及-
题目描述

Problem Background

Please note that you must pass all test cases to earn points for this problem.

Problem Description

Given three integers \(a, b, c\), please determine if they satisfy all of the following conditions:

  1. \(a + b + c \leq 100\).
  2. \(b\) is a multiple of 5.
  3. \(c\) is a multiple of 7.
  4. \(a - b > b - c\).

If all conditions are met, output \(\texttt{Yes}\); otherwise, output \(\texttt{No}\).

Input and Output Format

Input Format

The input consists of a single line with three integers, representing \(a, b, c\) in order.

Output Format

Output a single string representing the answer.

Sample Input and Output

Sample Input #1

50 10 7

Sample Output #1

Yes

Sample Input #2

100 100 100

Sample Output #2

No

Notes

Data Range and Constraints

This problem uses bundled testing; you must pass all test cases to earn points.

For all test cases, it is guaranteed that \(0 \leq a, b, c < 2^{31}\).

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
50 10 7
样例输出
Yes