結果

問題 No.441 和か積
ユーザー hebiyanhebiyan
提出日時 2017-05-17 23:58:47
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 18 ms / 1,000 ms
コード長 136 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 11,764 KB
最終ジャッジ日時 2023-09-09 10:44:29
合計ジャッジ時間 2,076 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,580 KB
testcase_01 AC 18 ms
11,632 KB
testcase_02 AC 17 ms
11,632 KB
testcase_03 AC 17 ms
11,680 KB
testcase_04 AC 17 ms
11,656 KB
testcase_05 AC 17 ms
11,680 KB
testcase_06 AC 18 ms
11,632 KB
testcase_07 AC 18 ms
11,604 KB
testcase_08 AC 17 ms
11,632 KB
testcase_09 AC 17 ms
11,744 KB
testcase_10 AC 18 ms
11,528 KB
testcase_11 AC 18 ms
11,684 KB
testcase_12 AC 17 ms
11,620 KB
testcase_13 AC 18 ms
11,748 KB
testcase_14 AC 18 ms
11,612 KB
testcase_15 AC 17 ms
11,700 KB
testcase_16 AC 17 ms
11,764 KB
testcase_17 AC 18 ms
11,620 KB
testcase_18 AC 18 ms
11,664 KB
testcase_19 AC 17 ms
11,724 KB
testcase_20 AC 17 ms
11,576 KB
testcase_21 AC 17 ms
11,592 KB
testcase_22 AC 17 ms
11,664 KB
testcase_23 AC 17 ms
11,588 KB
testcase_24 AC 17 ms
11,672 KB
testcase_25 AC 17 ms
11,656 KB
testcase_26 AC 18 ms
11,544 KB
testcase_27 AC 17 ms
11,640 KB
testcase_28 AC 17 ms
11,680 KB
testcase_29 AC 17 ms
11,608 KB
testcase_30 AC 17 ms
11,576 KB
testcase_31 AC 17 ms
11,724 KB
testcase_32 AC 17 ms
11,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(letrec ((n (read)) (m (read))
         (s (+ n m)) (p (* n m)))
  (print
   (cond
    ((< s p) "P")
    ((< p s) "S")
    (else "E"))))
0