結果
問題 |
No.998 Four Integers
|
ユーザー |
![]() |
提出日時 | 2024-10-30 21:33:24 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 11 ms / 1,000 ms |
コード長 | 287 bytes |
コンパイル時間 | 291 ms |
コンパイル使用メモリ | 37,564 KB |
実行使用メモリ | 30,012 KB |
最終ジャッジ日時 | 2024-10-30 21:33:26 |
合計ジャッジ時間 | 1,547 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 30 OCT 2024 09:33:24 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.071
ソースコード
(defun main (&rest args) (declare (ignorable args)) (let* ((x (sort (loop repeat 4 collect (read)) #'<))) (loop for (x1 x2) on x while x2 when (/= (1+ x1) x2) do (format t "No~%") (return-from main)) (format t "Yes~%"))) (main)