結果

問題 No.2736 About half
ユーザー Lisp_Coder
提出日時 2024-04-23 01:31:46
言語 Common Lisp
(sbcl 2.5.0)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 1,192 ms
コンパイル使用メモリ 26,112 KB
実行使用メモリ 21,760 KB
最終ジャッジ日時 2024-10-15 00:46:04
合計ジャッジ時間 2,588 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8 WA * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 15 OCT 2024 12:46:01 AM):

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

ソースコード

diff #

(defun main ()
  (let ((a (read)) (b (read)))
    ; 片方がもう片方の2倍以上ならば、"No"を出力. そうでなければ"Yes"を出力.
    (if (<= (* 2 a) b)
        (format t "~a~%" "No")
        (format t "~a~%" "Yes"))))

(main)
0