結果

問題 No.441 和か積
ユーザー neko_the_shadow
提出日時 2016-12-08 00:03:50
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 26 ms / 1,000 ms
コード長 234 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 16,128 KB
最終ジャッジ日時 2024-06-27 03:39:56
合計ジャッジ時間 1,797 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

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