結果

問題 No.441 和か積
ユーザー taktak
提出日時 2018-08-06 19:17:34
言語 F#
(F# 4.0)
結果
AC  
実行時間 83 ms / 1,000 ms
コード長 366 bytes
コンパイル時間 15,407 ms
コンパイル使用メモリ 182,092 KB
実行使用メモリ 32,024 KB
最終ジャッジ日時 2023-10-19 22:16:57
合計ジャッジ時間 18,406 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
32,020 KB
testcase_01 AC 82 ms
32,012 KB
testcase_02 AC 80 ms
32,012 KB
testcase_03 AC 80 ms
32,012 KB
testcase_04 AC 80 ms
32,012 KB
testcase_05 AC 81 ms
32,012 KB
testcase_06 AC 80 ms
32,012 KB
testcase_07 AC 80 ms
32,012 KB
testcase_08 AC 81 ms
32,020 KB
testcase_09 AC 81 ms
32,016 KB
testcase_10 AC 81 ms
32,016 KB
testcase_11 AC 81 ms
32,016 KB
testcase_12 AC 80 ms
32,024 KB
testcase_13 AC 83 ms
32,024 KB
testcase_14 AC 80 ms
32,016 KB
testcase_15 AC 80 ms
32,024 KB
testcase_16 AC 80 ms
32,024 KB
testcase_17 AC 79 ms
32,024 KB
testcase_18 AC 80 ms
32,024 KB
testcase_19 AC 82 ms
32,024 KB
testcase_20 AC 82 ms
32,016 KB
testcase_21 AC 82 ms
32,016 KB
testcase_22 AC 80 ms
32,016 KB
testcase_23 AC 81 ms
32,024 KB
testcase_24 AC 80 ms
32,024 KB
testcase_25 AC 80 ms
32,024 KB
testcase_26 AC 81 ms
32,024 KB
testcase_27 AC 81 ms
32,016 KB
testcase_28 AC 82 ms
32,016 KB
testcase_29 AC 82 ms
32,012 KB
testcase_30 AC 81 ms
32,012 KB
testcase_31 AC 80 ms
32,012 KB
testcase_32 AC 80 ms
32,012 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (971 ms)。
MSBuild のバージョン 17.7.3+8ec440e68 (.NET)
  main -> /home/judge/data/code/bin/Release/net7.0/main.dll
  main -> /home/judge/data/code/bin/Release/net7.0/publish/

ソースコード

diff #

let (|Pl|Mu|Eq|) (a,b) =
    match a, b with
    | "0", "0" | "2", "2" -> 
        Eq
    | "1",  _  |  _ , "1"
    | "0",  _  |  _ , "0" -> 
        Pl
    | _ -> 
        Mu           
        
let A, B = 
    let t = stdin.ReadLine().Split()
    t.[0], t.[1]
    
(A,B)
|> function
    | Pl -> "S" // Sum
    | Eq -> "E"
    | Mu -> "P" // Product
|> printfn "%s"
0