結果

問題 No.668 6.0*10^23
ユーザー taktak
提出日時 2018-04-12 20:28:31
言語 F#
(F# 4.0)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 363 bytes
コンパイル時間 5,522 ms
コンパイル使用メモリ 154,064 KB
実行使用メモリ 25,728 KB
最終ジャッジ日時 2023-09-12 18:10:10
合計ジャッジ時間 12,099 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
22,776 KB
testcase_01 AC 90 ms
25,704 KB
testcase_02 AC 89 ms
23,480 KB
testcase_03 AC 88 ms
23,128 KB
testcase_04 AC 88 ms
23,148 KB
testcase_05 AC 89 ms
24,996 KB
testcase_06 AC 89 ms
23,180 KB
testcase_07 AC 87 ms
24,844 KB
testcase_08 AC 87 ms
24,764 KB
testcase_09 AC 88 ms
22,752 KB
testcase_10 AC 87 ms
23,024 KB
testcase_11 AC 90 ms
23,596 KB
testcase_12 AC 88 ms
23,024 KB
testcase_13 AC 89 ms
23,660 KB
testcase_14 AC 90 ms
25,544 KB
testcase_15 AC 88 ms
22,752 KB
testcase_16 AC 90 ms
22,856 KB
testcase_17 AC 90 ms
23,568 KB
testcase_18 AC 89 ms
25,340 KB
testcase_19 AC 88 ms
23,004 KB
testcase_20 AC 89 ms
23,324 KB
testcase_21 AC 89 ms
25,184 KB
testcase_22 AC 90 ms
23,648 KB
testcase_23 AC 89 ms
23,492 KB
testcase_24 AC 87 ms
22,916 KB
testcase_25 AC 89 ms
23,684 KB
testcase_26 AC 87 ms
24,788 KB
testcase_27 AC 88 ms
23,312 KB
testcase_28 AC 89 ms
25,676 KB
testcase_29 AC 89 ms
23,256 KB
testcase_30 AC 89 ms
23,716 KB
testcase_31 AC 90 ms
23,308 KB
testcase_32 AC 88 ms
22,816 KB
testcase_33 AC 88 ms
23,592 KB
testcase_34 AC 87 ms
22,988 KB
testcase_35 AC 88 ms
20,980 KB
testcase_36 AC 90 ms
25,508 KB
testcase_37 AC 90 ms
25,728 KB
testcase_38 AC 89 ms
25,300 KB
testcase_39 AC 88 ms
25,320 KB
testcase_40 AC 89 ms
23,620 KB
testcase_41 AC 89 ms
23,648 KB
testcase_42 AC 89 ms
23,224 KB
testcase_43 AC 90 ms
23,624 KB
testcase_44 AC 89 ms
23,752 KB
testcase_45 AC 88 ms
22,728 KB
testcase_46 AC 87 ms
22,712 KB
testcase_47 AC 87 ms
22,788 KB
testcase_48 AC 88 ms
22,636 KB
testcase_49 AC 87 ms
22,848 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

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()) "" |> int
let other = (arr |> Array.length) - 3

let f,n = let t = front.ToString("E1").Split('+') 
          in t.[0].Replace("E","*10^"),t.[1] |> int

f + (n+other).ToString()
|> printfn "%s"
0