結果

問題 No.3006 ベイカーの問題
ユーザー gew1fw
提出日時 2025-06-12 19:43:26
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 277 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 82,528 KB
実行使用メモリ 67,068 KB
最終ジャッジ日時 2025-06-12 19:43:29
合計ジャッジ時間 3,108 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

x = int(input())
a = x // 100
b = (x // 10) % 10
c = x % 10

if a > b and b > c:
    print(3)
elif a < b and b < c:
    print(2000 + c ** 3)
elif a == b == c:
    print(a * (3 ** a))
else:
    print(0)  # This case is not covered by the examples, but included for completeness.
0