結果
問題 | No.668 6.0*10^23 |
ユーザー |
![]() |
提出日時 | 2018-03-23 22:51:34 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 1,209 bytes |
コンパイル時間 | 139 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,136 KB |
最終ジャッジ日時 | 2024-06-30 05:16:21 |
合計ジャッジ時間 | 2,996 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
#!/usr/bin/env python# -*- coding: utf-8 -*-import sysfrom collections import dequeimport heapqfrom collections import Counterimport math# ------------------------------------------------------class IN:@staticmethoddef singleInt():return int(input())@staticmethoddef singleStr():return input()@staticmethoddef listInt():return list(map(int, input().split()))@staticmethoddef 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 = 1001001001001001001MOD = 1000000007# ------------------------------------------------------if __name__ == '__main__':N = IN.singleStr()c = len(N) - 1a = int(N[0:3])if a % 10 >= 5:a += 10b = a % 100 // 10a = a // 100if a == 10:a = 1b = 0c += 1print("%d.%d*10^%d" % (a, b, c))