結果

問題 No.668 6.0*10^23
ユーザー Theta
提出日時 2022-10-18 17:50:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 327 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,520 KB
最終ジャッジ日時 2024-06-29 01:14:15
合計ジャッジ時間 3,413 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 44 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal


def main():
    N = input()
    exp_ = len(N) - 1
    mantissa = Decimal(N[:3])
    mantissa = int(mantissa.quantize(Decimal('1E1')))
    if mantissa >= 1000:
        exp_ += 1
        mantissa /= 10

    mantissa /= 100

    print(f"{mantissa}*10^{exp_}")


if __name__ == "__main__":
    main()
0