結果

問題 No.668 6.0*10^23
ユーザー algon_320algon_320
提出日時 2018-03-23 22:51:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 1,209 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 10,860 KB
実行使用メモリ 9,048 KB
最終ジャッジ日時 2023-09-12 17:26:01
合計ジャッジ時間 2,910 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,692 KB
testcase_01 AC 20 ms
8,860 KB
testcase_02 AC 19 ms
8,900 KB
testcase_03 AC 19 ms
8,768 KB
testcase_04 AC 19 ms
8,968 KB
testcase_05 AC 20 ms
8,836 KB
testcase_06 AC 20 ms
8,796 KB
testcase_07 AC 20 ms
8,644 KB
testcase_08 AC 20 ms
8,752 KB
testcase_09 AC 20 ms
8,648 KB
testcase_10 AC 20 ms
8,804 KB
testcase_11 AC 19 ms
8,820 KB
testcase_12 AC 19 ms
8,888 KB
testcase_13 AC 20 ms
8,940 KB
testcase_14 AC 19 ms
8,944 KB
testcase_15 AC 19 ms
8,760 KB
testcase_16 AC 20 ms
8,780 KB
testcase_17 AC 20 ms
8,712 KB
testcase_18 AC 20 ms
8,904 KB
testcase_19 AC 19 ms
8,732 KB
testcase_20 AC 20 ms
8,868 KB
testcase_21 AC 19 ms
8,860 KB
testcase_22 AC 19 ms
8,932 KB
testcase_23 AC 19 ms
8,844 KB
testcase_24 AC 20 ms
8,876 KB
testcase_25 AC 20 ms
8,832 KB
testcase_26 AC 19 ms
8,648 KB
testcase_27 AC 19 ms
8,912 KB
testcase_28 AC 20 ms
8,852 KB
testcase_29 AC 20 ms
8,868 KB
testcase_30 AC 20 ms
8,900 KB
testcase_31 AC 20 ms
8,956 KB
testcase_32 AC 20 ms
8,788 KB
testcase_33 AC 19 ms
9,048 KB
testcase_34 AC 19 ms
8,796 KB
testcase_35 AC 19 ms
8,668 KB
testcase_36 AC 20 ms
8,712 KB
testcase_37 AC 20 ms
8,940 KB
testcase_38 AC 20 ms
8,764 KB
testcase_39 AC 20 ms
8,928 KB
testcase_40 AC 20 ms
8,848 KB
testcase_41 AC 20 ms
8,940 KB
testcase_42 AC 20 ms
8,864 KB
testcase_43 AC 20 ms
8,900 KB
testcase_44 AC 20 ms
8,860 KB
testcase_45 AC 20 ms
8,656 KB
testcase_46 AC 19 ms
8,796 KB
testcase_47 AC 20 ms
8,648 KB
testcase_48 AC 20 ms
8,728 KB
testcase_49 AC 20 ms
8,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from collections import deque
import heapq
from collections import Counter
import math

# ------------------------------------------------------
class IN:
    @staticmethod
    def singleInt():
        return int(input())

    @staticmethod
    def singleStr():
        return input()

    @staticmethod
    def listInt():
        return list(map(int, input().split()))

    @staticmethod
    def listStr():
        return input().split()
# ------------------------------------------------------

print = lambda s: sys.stdout.write(str(s) + "\r\n")

def contain(c, x):
    return (x in c)

def str_reverse(s):
    return s[::-1]

def ctoi(c):
    return int.from_bytes(c.encode(), byteorder='big')
def itoc(x):
    return x.to_bytes((x.bit_length() + 7) // 8, byteorder='big').decode()

INF = 1001001001001001001
MOD = 1000000007
# ------------------------------------------------------


if __name__ == '__main__':
    N = IN.singleStr()
    c = len(N) - 1
    a = int(N[0:3])
    if a % 10 >= 5:
        a += 10
    b = a % 100 // 10
    a = a // 100
    if a == 10:
        a = 1
        b = 0
        c += 1
    print("%d.%d*10^%d" % (a, b, c))


0