No.2414 2 KA 3 KA
レベル :
/ AI推定難易度 : 75
/ 実行時間制限 : 1ケース 2.000秒 / メモリ制限
: 512 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 255
作問者 :
Nafmo2
/ テスター :
LaFolia13
hikikomori
sepa38
Seed57_cash
Udon
ryota2357
タグ : / 解いたユーザー数 255
作問者 :
LaFolia13
hikikomori
sepa38
Seed57_cash
問題文最終更新日: 2023-08-16 14:43:22
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 016
(順位表)
の他の問題:
Problem Statement
There is a rectangular cuboid with length $A\ \rm{cm}$, width $B\ \rm{cm}$, and height $C\ \rm{cm}$.
Nafmo calculated the surface area of this cuboid as $X\ \rm{cm}^2$ and its volume as $Y\ \rm{cm}^3$.
Print $2$ if $X$ is strictly greater than $Y$, and $3$ otherwise.
Test cases were added (after_contest) around 14:40 on 2023/08/14
Constraints
- $1 \leq A,B,C \leq 100$
- $A,B,C$ are integers
Input
$A\ B \ C$
Output
Print $2$ or $3$.
Sample
Sample 1
Input
1 2 3
Output
2
$X = (1 \times 2 + 2 \times 3 + 3 \times 1 ) \times 2 = 22$
$Y =1 \times 2 \times 3 = 6$
Since $X$ is greater, print $2$.
Sample 2
Input
10 10 10
Output
3
$X=600$
$Y=1000$
Since $Y$ is greater, print $3$.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。