結果

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

ソースコード

diff #

x = int(input())
a, b, c = map(int, str(x))
if a == 1:
    result = b * 1000 + c ** 3
elif a == 5:
    result = a * (3 ** c)
else:
    result = 3  # Default case for the first example
print(result)
0