結果
| 問題 | No.531 エヌスクミ島の平和協定 |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-06 18:14:59 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
AC
|
| 実行時間 | 9 ms / 2,000 ms |
| コード長 | 338 bytes |
| 記録 | |
| コンパイル時間 | 357 ms |
| コンパイル使用メモリ | 28,800 KB |
| 実行使用メモリ | 22,144 KB |
| 最終ジャッジ日時 | 2026-05-06 23:11:28 |
| 合計ジャッジ時間 | 2,905 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 37 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 06 MAY 2026 11:11:23 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.035
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((n (read))
(m (read)))
(format t "~d~%" (cond
((and (> n m) (evenp n) (<= (floor n 2) m))
2)
((<= n m)
1)
(t
-1)))))
(main)
Common Lisp