結果

問題 No.208 王将
ユーザー Common Lisp
提出日時 2024-11-05 16:50:24
言語 Common Lisp
(sbcl 2.5.0)
結果
AC  
実行時間 12 ms / 1,000 ms
コード長 281 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 32,708 KB
実行使用メモリ 31,892 KB
最終ジャッジ日時 2024-11-05 16:50:26
合計ジャッジ時間 1,730 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 05 NOV 2024 04:50:24 PM):

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

ソースコード

diff #

(defun main (&rest argv)
  (declare (ignorable argv))
  (let* ((x1 (read))
         (y1 (read))
         (x2 (read))
         (y2 (read)))
    (format t "~d~%" (if (and (> x1 x2) (= x1 y1) (= x2 y2))
                         (1+ x1)
                         (max x1 y1)))))

(main)
0