結果
問題 | No.668 6.0*10^23 |
ユーザー |
|
提出日時 | 2018-03-24 00:15:57 |
言語 | Nim (2.2.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 420 bytes |
コンパイル時間 | 3,536 ms |
コンパイル使用メモリ | 66,044 KB |
実行使用メモリ | 13,756 KB |
最終ジャッジ日時 | 2024-06-30 05:28:11 |
合計ジャッジ時間 | 6,922 ms |
ジャッジサーバーID (参考情報) |
judge1 / 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).parseIntvarn = readLine(stdin)num:int = (n).replace("0", "").parseIntwhile true:num += 1if replace(($num), "0", "").len <= 2:breakvarzeros:int = count($n, '0') + count($num, '0')nums = replace($num, "0", "")if len(nums) == 1:echo nums,".0*10^",zeroselif len(nums) == 2:echo nums.parseInt / 10, "*10^",zeros + 1