結果
問題 | No.1205 Eye Drops |
ユーザー |
![]() |
提出日時 | 2024-11-06 00:58:47 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 168 ms / 2,000 ms |
コード長 | 401 bytes |
コンパイル時間 | 279 ms |
コンパイル使用メモリ | 35,072 KB |
実行使用メモリ | 30,016 KB |
最終ジャッジ日時 | 2024-11-06 00:58:51 |
合計ジャッジ時間 | 3,837 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 37 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 06 NOV 2024 12:58:47 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.004
ソースコード
(defun main (&rest argv)(declare (ignorable argv))(let* ((n (read))(m (read))(a 0)(b 0)(flg t))(declare (ignore n))(dotimes (_ m)(let* ((p (read))(q (read)))(when (< (abs (- a p)) (abs (- b q)))(setq flg nil))(setq a pb q)))(format t "~a~%" (if flg "Yes" "No"))))(main)