結果

問題 No.668 6.0*10^23
ユーザー mkanenobumkanenobu
提出日時 2018-03-24 00:15:57
言語 Nim
(2.0.2)
結果
RE  
実行時間 -
コード長 420 bytes
コンパイル時間 3,112 ms
コンパイル使用メモリ 68,836 KB
実行使用メモリ 8,752 KB
最終ジャッジ日時 2023-09-12 17:39:44
合計ジャッジ時間 6,823 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
7,336 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 AC 2 ms
4,384 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]

ソースコード

diff #

import sequtils, strutils

#var n = readLine(stdin).parseInt
var
    n = readLine(stdin)
    num:int = (n).replace("0", "").parseInt

while true:
    num += 1
    if replace(($num), "0", "").len <= 2:
        break

var
    zeros:int = count($n, '0') + count($num, '0')
    nums = replace($num, "0", "")

if len(nums) == 1:
    echo nums,".0*10^",zeros
elif len(nums) == 2:
    echo nums.parseInt / 10, "*10^",zeros + 1
0