結果
問題 | No.668 6.0*10^23 |
ユーザー | 6soukiti29 |
提出日時 | 2018-03-23 23:28:18 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 319 bytes |
コンパイル時間 | 3,294 ms |
コンパイル使用メモリ | 66,420 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 05:26:38 |
合計ジャッジ時間 | 4,682 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport] /home/judge/data/code/Main.nim(1, 26) Warning: imported and not used: 'math' [UnusedImport]
ソースコード
import sequtils,strutils,math var S = stdin.readline i : int n : int I : string i = S[0..2].parseInt n = S.len - 1 if i mod 10 >= 5: i += 10 - (i mod 10) if i >= 1000: n += 1 i = i div 10 else: i -= i mod 10 i = i div 10 I = $(i div 10) & "." & $(i mod 10) echo(I, "*10^", n)