結果
| 問題 | No.668 6.0*10^23 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-24 00:15:57 |
| 言語 | Nim (2.2.8) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 420 bytes |
| 記録 | |
| コンパイル時間 | 2,711 ms |
| コンパイル使用メモリ | 68,292 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-02 05:31:13 |
| 合計ジャッジ時間 | 6,867 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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
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