No.3659 CONSTRUCTION 1,2,3
レベル :
/ AI推定難易度 : 1000
/ 実行時間制限 : 1ケース 2.000秒 / メモリ制限
: 1024 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 69
作問者 :
tyawanmusi
/ テスター :
dyktr_06
くらげ
t5ugu
sepa38
タグ : / 解いたユーザー数 69
作問者 :
くらげ
sepa38
問題文最終更新日: 2026-08-26 21:25:20
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
MMA Contest 022
(順位表)
の他の問題:
Problem Statement
Is it possible to build a rectangular cuboid of size $A\times B\times C$ by combining rectangular cuboids of size $1\times 2\times 3$?
Constraints
- $1 \le A,B,C \le 10^9$
- $A,B,C$ are integers.
Input
The input is given from standard input in the following format.
$A\ B\ C$
Output
Print Yes on one line if a rectangular cuboid of size $A\times B\times C$ can be built, and No otherwise.
Sample
Sample 1
Input
4 5 3
Output
Yes
By combining them as shown in the figure below, a rectangular cuboid of size $4\times 5\times 3$ can be built.
Sample 2
Input
3 3 3
Output
No
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。