結果

問題 No.668 6.0*10^23
ユーザー 141sksk141sksk
提出日時 2020-07-18 00:04:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 396 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 9,324 KB
最終ジャッジ日時 2023-08-20 05:12:59
合計ジャッジ時間 3,054 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
9,020 KB
testcase_01 AC 21 ms
9,088 KB
testcase_02 AC 22 ms
9,216 KB
testcase_03 AC 22 ms
9,052 KB
testcase_04 AC 21 ms
9,108 KB
testcase_05 AC 22 ms
9,000 KB
testcase_06 AC 22 ms
9,140 KB
testcase_07 AC 21 ms
9,136 KB
testcase_08 AC 21 ms
9,112 KB
testcase_09 AC 22 ms
8,896 KB
testcase_10 AC 21 ms
9,080 KB
testcase_11 AC 21 ms
9,028 KB
testcase_12 AC 21 ms
9,164 KB
testcase_13 AC 21 ms
9,324 KB
testcase_14 AC 21 ms
9,124 KB
testcase_15 AC 22 ms
9,108 KB
testcase_16 AC 21 ms
8,920 KB
testcase_17 AC 21 ms
9,148 KB
testcase_18 AC 21 ms
9,068 KB
testcase_19 AC 21 ms
9,196 KB
testcase_20 AC 21 ms
8,988 KB
testcase_21 AC 21 ms
9,180 KB
testcase_22 AC 22 ms
9,256 KB
testcase_23 AC 22 ms
9,024 KB
testcase_24 AC 21 ms
9,160 KB
testcase_25 AC 22 ms
9,228 KB
testcase_26 AC 21 ms
9,088 KB
testcase_27 AC 22 ms
9,156 KB
testcase_28 AC 22 ms
9,108 KB
testcase_29 AC 21 ms
9,232 KB
testcase_30 AC 22 ms
9,212 KB
testcase_31 AC 22 ms
9,200 KB
testcase_32 AC 21 ms
9,056 KB
testcase_33 AC 21 ms
9,184 KB
testcase_34 AC 21 ms
9,084 KB
testcase_35 AC 22 ms
9,212 KB
testcase_36 AC 22 ms
9,296 KB
testcase_37 AC 22 ms
9,308 KB
testcase_38 AC 22 ms
9,184 KB
testcase_39 AC 21 ms
9,164 KB
testcase_40 AC 21 ms
9,280 KB
testcase_41 AC 21 ms
9,152 KB
testcase_42 AC 21 ms
9,108 KB
testcase_43 AC 22 ms
9,144 KB
testcase_44 AC 22 ms
9,124 KB
testcase_45 AC 21 ms
9,116 KB
testcase_46 AC 21 ms
8,976 KB
testcase_47 AC 22 ms
9,132 KB
testcase_48 AC 21 ms
8,876 KB
testcase_49 AC 22 ms
8,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal, ROUND_HALF_UP

def main():

    N = input()
    core = int(N[:3])
    round_n = int(Decimal(core).quantize(Decimal('1E1'), rounding=ROUND_HALF_UP))
    if 995 <= core <= 999:
        ans_1 = 1.0
        ans_2 = len(N)
    else:
        ans_1 = round_n / 10 ** 2
        ans_2 = len(N) - 1
    print(str(ans_1)+'*10^'+str(ans_2))

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