結果
| 問題 | No.410 出会い |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-10-09 21:32:11 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 2,000 ms |
| コード長 | 292 bytes |
| 記録 | |
| コンパイル時間 | 1,180 ms |
| コンパイル使用メモリ | 32,288 KB |
| 実行使用メモリ | 29,860 KB |
| 最終ジャッジ日時 | 2024-10-09 21:32:13 |
| 合計ジャッジ時間 | 1,529 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 09 OCT 2024 09:32:11 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.014
ソースコード
; 2 点間のマンハッタン距離の半分を出力する
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((px (read))
(py (read))
(qx (read))
(qy (read))
(ans (/ (+ (abs (- px qx)) (abs (- py qy))) 2)))
(format t "~f~%" ans)))
(main)
Common Lisp