結果
| 問題 |
No.668 6.0*10^23
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-07 23:32:13 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 11 ms / 2,000 ms |
| コード長 | 179 bytes |
| コンパイル時間 | 37 ms |
| コンパイル使用メモリ | 6,784 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 05:46:21 |
| 合計ジャッジ時間 | 1,552 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 50 |
ソースコード
S = raw_input()
A = int(S[:2])
L = len(S) - 1
if int(S[2]) >= 5:
A += 1
if len(str(A)) > len(str(A-1)):
L += 1
print str(A)[0] + "." + str(A)[1] + "*10^" + str(L)