結果
問題 |
No.668 6.0*10^23
|
ユーザー |
![]() |
提出日時 | 2018-03-23 23:26:10 |
言語 | Nim (2.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 319 bytes |
コンパイル時間 | 2,517 ms |
コンパイル使用メモリ | 66,056 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 05:25:55 |
合計ジャッジ時間 | 3,939 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 38 WA * 12 |
コンパイルメッセージ
/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)