結果

問題 No.722 100×100=1000
ユーザー taktak
提出日時 2018-08-11 00:39:19
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 636 bytes
コンパイル時間 16,965 ms
コンパイル使用メモリ 199,272 KB
実行使用メモリ 30,464 KB
最終ジャッジ日時 2024-04-20 15:14:24
合計ジャッジ時間 17,783 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
30,336 KB
testcase_01 AC 51 ms
30,080 KB
testcase_02 AC 54 ms
30,080 KB
testcase_03 AC 52 ms
30,208 KB
testcase_04 AC 54 ms
29,952 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 53 ms
30,208 KB
testcase_08 AC 52 ms
30,080 KB
testcase_09 AC 54 ms
30,080 KB
testcase_10 AC 53 ms
30,080 KB
testcase_11 AC 56 ms
30,080 KB
testcase_12 AC 55 ms
30,208 KB
testcase_13 AC 53 ms
30,208 KB
testcase_14 AC 52 ms
29,952 KB
testcase_15 AC 56 ms
30,336 KB
testcase_16 AC 54 ms
30,068 KB
testcase_17 AC 55 ms
30,208 KB
testcase_18 AC 55 ms
30,188 KB
testcase_19 AC 55 ms
30,080 KB
testcase_20 AC 57 ms
30,188 KB
testcase_21 WA -
testcase_22 AC 56 ms
30,336 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 52 ms
30,208 KB
testcase_26 AC 53 ms
30,336 KB
testcase_27 AC 54 ms
30,464 KB
testcase_28 AC 53 ms
30,336 KB
testcase_29 AC 51 ms
30,208 KB
testcase_30 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (755 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 #

let f (a:int64) (b:int64) =
    let mul = a * b
    let isAnzan =
        let trim = fun (x:string) -> x.TrimEnd '0'
        let getNonZero = abs >> string >> trim
        let a' = a |> getNonZero
        let b' = b |> getNonZero
        let dig = [1 .. 9] |> List.map string
        let isIn x = dig |> List.contains x
        isIn a' && isIn b'
    let isCalable = -99999999L <= mul && mul <= 99999999L
    
    if isAnzan then
        mul / 10L |> string
    elif isCalable then
        mul |> string
    else
        "E"

let A,B = 
    let t = stdin.ReadLine().Split() |> Array.map int64
    t.[0], t.[1]

f A B |> stdout.WriteLine
0