結果

問題 No.441 和か積
ユーザー neko_the_shadowneko_the_shadow
提出日時 2016-12-08 00:03:50
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 21 ms / 1,000 ms
コード長 234 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 13,584 KB
最終ジャッジ日時 2023-09-09 10:31:42
合計ジャッジ時間 2,158 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
11,600 KB
testcase_01 AC 17 ms
11,660 KB
testcase_02 AC 17 ms
13,584 KB
testcase_03 AC 17 ms
11,820 KB
testcase_04 AC 17 ms
11,868 KB
testcase_05 AC 16 ms
11,704 KB
testcase_06 AC 17 ms
11,848 KB
testcase_07 AC 17 ms
11,828 KB
testcase_08 AC 17 ms
11,688 KB
testcase_09 AC 21 ms
11,816 KB
testcase_10 AC 17 ms
11,676 KB
testcase_11 AC 16 ms
11,544 KB
testcase_12 AC 17 ms
11,572 KB
testcase_13 AC 16 ms
11,796 KB
testcase_14 AC 16 ms
11,832 KB
testcase_15 AC 16 ms
11,668 KB
testcase_16 AC 16 ms
11,828 KB
testcase_17 AC 16 ms
11,700 KB
testcase_18 AC 16 ms
11,672 KB
testcase_19 AC 16 ms
11,592 KB
testcase_20 AC 16 ms
11,668 KB
testcase_21 AC 17 ms
11,612 KB
testcase_22 AC 17 ms
11,836 KB
testcase_23 AC 17 ms
11,672 KB
testcase_24 AC 17 ms
11,536 KB
testcase_25 AC 17 ms
11,600 KB
testcase_26 AC 17 ms
11,668 KB
testcase_27 AC 17 ms
11,824 KB
testcase_28 AC 18 ms
11,680 KB
testcase_29 AC 17 ms
11,612 KB
testcase_30 AC 17 ms
11,672 KB
testcase_31 AC 17 ms
11,844 KB
testcase_32 AC 17 ms
11,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (solve a b)
  (let ((s (+ a b))
        (p (* a b)))
    (cond ((= s p) "E")
          ((< s p) "P")
          ((> s p) "S"))))
 
(define (Main)
  (let* ((a (read)) (b (read)))
    (display (solve a b))
    (newline)))

(Main)
0