問題一覧 > 通常問題

No.1119 Division 3

レベル : / AI推定難易度 : 109 / 実行時間制限 : 1ケース 1.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 510
作問者 : e869120 / テスター : maspy
お気に入りにしたユーザー ProblemId : 4629 / 自分の提出
問題文最終更新日: 2020-07-22 21:21:18
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もしくは右上の雲マークをクリックしてアカウントを作成してください。