結果

問題 No.722 100×100=1000
ユーザー ichibanshiboriichibanshibori
提出日時 2018-09-06 23:09:47
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 501 bytes
コンパイル時間 7,713 ms
コンパイル使用メモリ 185,656 KB
実行使用メモリ 30,976 KB
最終ジャッジ日時 2024-04-20 15:27:54
合計ジャッジ時間 11,447 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
30,848 KB
testcase_01 AC 73 ms
30,976 KB
testcase_02 AC 69 ms
30,828 KB
testcase_03 AC 73 ms
30,976 KB
testcase_04 AC 73 ms
30,968 KB
testcase_05 AC 73 ms
30,976 KB
testcase_06 AC 72 ms
30,588 KB
testcase_07 AC 67 ms
30,592 KB
testcase_08 AC 71 ms
30,976 KB
testcase_09 AC 73 ms
30,720 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 76 ms
30,720 KB
testcase_13 AC 73 ms
30,848 KB
testcase_14 AC 67 ms
30,720 KB
testcase_15 AC 74 ms
30,720 KB
testcase_16 AC 71 ms
30,976 KB
testcase_17 AC 69 ms
30,688 KB
testcase_18 AC 71 ms
30,964 KB
testcase_19 AC 72 ms
30,720 KB
testcase_20 AC 72 ms
30,592 KB
testcase_21 AC 74 ms
30,836 KB
testcase_22 AC 68 ms
30,848 KB
testcase_23 AC 76 ms
30,976 KB
testcase_24 AC 72 ms
30,848 KB
testcase_25 AC 73 ms
30,956 KB
testcase_26 AC 74 ms
30,720 KB
testcase_27 WA -
testcase_28 AC 73 ms
30,592 KB
testcase_29 AC 74 ms
30,844 KB
testcase_30 AC 74 ms
30,592 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (289 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/

ソースコード

diff #

open System

let solve a b =
    if a % 100m = 0m && b % 100m = 0m then
        Some(a * b / 10m)
    else
        let ab = a * b
        if Math.Abs(ab) > 99999999m then
            None
        else
            Some(ab)


let () =
    let a, b =
        Console.ReadLine()
        |> fun s -> s.Split()
        |> fun abArr -> decimal abArr.[0], decimal abArr.[1]
    
    let result =
        match solve a b with
        | Some(x) -> sprintf "%.0M" x
        | None -> "E"

    printfn "%s" result
0