結果
問題 |
No.668 6.0*10^23
|
ユーザー |
|
提出日時 | 2018-03-23 23:39:26 |
言語 | Nim (2.2.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 3,468 ms |
コンパイル使用メモリ | 66,420 KB |
実行使用メモリ | 13,888 KB |
最終ジャッジ日時 | 2024-06-30 05:27:12 |
合計ジャッジ時間 | 7,033 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 RE * 6 TLE * 1 -- * 40 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import sequtils, strutils var n = readLine(stdin).parseInt while true: n += 1 if replace(($n), "0", "").len <= 2: break var zeros:int = count($n, '0') num:int = ($n).replace("0", "").parseInt if len($num) == 1: echo num,".0*10^",zeros elif len($num) == 2: echo num / 10, "*10^",zeros + 1