No.1119 Division 3
問題文最終更新日: 2020-07-22 21:21:18
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
yukicoder contest 258
(順位表)
の他の問題:
Problem Statement
Determine whether $X \times Y \times Z$ is a multiple of $3$.
Input
$X$ $Y$ $Z$
On line $1$, the integers $X$, $Y$, $Z$ are given, separated by spaces.
Output
Print Yes if $X \times Y \times Z$ is a multiple of 3, and No otherwise.
Constraints
- $1 \leq X, Y, Z \leq 10^9$
- All inputs are integers.
Sample
Sample 1
Input
1 2 3
Output
Yes
Since $1 \times 2 \times 3 = 6$, it is a multiple of $3$. Therefore, printing Yes is correct.
Sample 2
Input
5 2 5
Output
No
Since $5 \times 2 \times 5 = 50$, it is not a multiple of $3$. Therefore, printing No is correct.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
e869120
maspy