結果

問題 No.441 和か積
ユーザー hum_ophum_op
提出日時 2017-04-16 21:10:25
言語 F#
(.NET 7)
結果
AC  
実行時間 79 ms / 1,000 ms
コード長 349 bytes
コンパイル時間 4,001 ms
コンパイル使用メモリ 166,248 KB
実行使用メモリ 24,744 KB
最終ジャッジ日時 2023-09-09 10:43:42
合計ジャッジ時間 8,188 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
22,672 KB
testcase_01 AC 75 ms
22,628 KB
testcase_02 AC 76 ms
22,668 KB
testcase_03 AC 78 ms
22,696 KB
testcase_04 AC 78 ms
22,764 KB
testcase_05 AC 78 ms
22,652 KB
testcase_06 AC 78 ms
24,696 KB
testcase_07 AC 77 ms
24,724 KB
testcase_08 AC 75 ms
24,668 KB
testcase_09 AC 76 ms
22,744 KB
testcase_10 AC 77 ms
22,592 KB
testcase_11 AC 75 ms
22,676 KB
testcase_12 AC 76 ms
22,600 KB
testcase_13 AC 77 ms
24,660 KB
testcase_14 AC 75 ms
20,636 KB
testcase_15 AC 76 ms
22,516 KB
testcase_16 AC 75 ms
24,740 KB
testcase_17 AC 75 ms
22,604 KB
testcase_18 AC 74 ms
22,612 KB
testcase_19 AC 79 ms
24,700 KB
testcase_20 AC 77 ms
22,604 KB
testcase_21 AC 77 ms
22,656 KB
testcase_22 AC 77 ms
22,664 KB
testcase_23 AC 77 ms
22,648 KB
testcase_24 AC 77 ms
22,688 KB
testcase_25 AC 77 ms
22,780 KB
testcase_26 AC 76 ms
24,664 KB
testcase_27 AC 75 ms
22,740 KB
testcase_28 AC 77 ms
22,620 KB
testcase_29 AC 77 ms
24,744 KB
testcase_30 AC 77 ms
22,700 KB
testcase_31 AC 78 ms
24,652 KB
testcase_32 AC 76 ms
22,672 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

open System

let No441 () =
    let IN = Console.ReadLine().Split(' ')
    let A = Numerics.BigInteger.Parse <|  IN.[0]
    let B = Numerics.BigInteger.Parse <| IN.[1]
    
    let sum = A + B
    let pro = A * B

    if sum > pro then
        printfn "S"
    else if sum < pro then
        printfn "P"
    else 
        printfn "E"

    ()
No441 ()
0