結果

問題 No.2776 Bigger image
ユーザー Lisp_Coder
提出日時 2024-06-15 14:01:59
言語 Common Lisp
(sbcl 2.5.0)
結果
AC  
実行時間 10 ms / 2,000 ms
コード長 391 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 26,752 KB
実行使用メモリ 21,760 KB
最終ジャッジ日時 2024-06-15 14:02:02
合計ジャッジ時間 2,155 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 15 JUN 2024 02:01:59 PM):

; wrote /home/judge/data/code/Main.fasl
; compilation finished in 0:00:00.004

ソースコード

diff #

(defun main ()
  (let* ((A (read))
         (B (read))
         (H (read))
         (W (read))
         (nonrotate (min (* B B H H) (* A A W W)))
         (rotate (min (* A A H H) (* B B W W))))
    (cond ((> nonrotate rotate)
           (format t "Non-rotating~%"))
          ((> rotate nonrotate)
           (format t "Rotating~%"))
          (t
           (format t "Same~%")))))

(main)
0