結果
問題 | No.668 6.0*10^23 |
ユーザー |
![]() |
提出日時 | 2018-04-12 20:28:31 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 81 ms / 2,000 ms |
コード長 | 363 bytes |
コンパイル時間 | 13,936 ms |
コンパイル使用メモリ | 193,036 KB |
実行使用メモリ | 34,432 KB |
最終ジャッジ日時 | 2024-06-30 05:53:01 |
合計ジャッジ時間 | 19,482 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (319 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
let N = stdin.ReadLine()let arr = N.ToCharArray() |> Array.map (fun c -> (int c)-(int '0'))let front = arr.[0..2] |> Array.fold (fun acc x -> acc + x.ToString()) "" |> intlet other = (arr |> Array.length) - 3let f,n = let t = front.ToString("E1").Split('+')in t.[0].Replace("E","*10^"),t.[1] |> intf + (n+other).ToString()|> printfn "%s"