結果

問題 No.668 6.0*10^23
ユーザー はむ吉🐹
提出日時 2018-03-23 23:51:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 303 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 82,084 KB
実行使用メモリ 67,400 KB
最終ジャッジ日時 2024-06-30 05:27:43
合計ジャッジ時間 4,192 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 3 RE * 40
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env pypy3

import math


def parse(n):
    c = int(math.log10(n))
    ab = n / (10 ** c)
    if ab > 9.99:
        ab = 1.0
        c += 1
    return ab, c


def main():
    n = int(input())
    ab, c = parse(n)
    print("{:.1f}*10^{}".format(ab, c))


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