結果

問題 No.441 和か積
ユーザー tanson
提出日時 2025-10-06 00:05:44
言語 Standard ML
(MLton 20210117)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 341 bytes
コンパイル時間 3,198 ms
コンパイル使用メモリ 689,916 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-10-06 00:05:52
合計ジャッジ時間 4,892 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

fun readLargeInt () =
    valOf (TextIO.scanStream (LargeInt.scan StringCvt.DEC) TextIO.stdIn)


val () =
    let
        val a = readLargeInt ()
        val b = readLargeInt ()

        val ans = if a + b = a * b then "E"
                  else if a + b > a * b then "S"
                  else "P"
    in
        print (ans ^ "\n")
    end
0