結果
| 問題 |
No.2922 Rose Garden
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-10-17 21:53:09 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 142 ms / 3,000 ms |
| コード長 | 335 bytes |
| コンパイル時間 | 300 ms |
| コンパイル使用メモリ | 36,644 KB |
| 実行使用メモリ | 30,140 KB |
| 最終ジャッジ日時 | 2024-10-17 21:53:15 |
| 合計ジャッジ時間 | 5,326 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 50 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 17 OCT 2024 09:53:10 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.032
ソースコード
(defun main ()
(let* ((n (read))
(s (read))
(b (read))
(h (read))
(m h))
(loop for i below (1- n)
as a = (read)
when (> a (+ m (* b s)))
do (progn (princ "No") (terpri) (return-from main))
do (setq m (max m a)))
(princ "Yes")
(terpri)))
(main)
Common Lisp