結果
問題 | No.98 円を描こう |
ユーザー |
|
提出日時 | 2025-04-09 23:24:53 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 373 bytes |
コンパイル時間 | 348 ms |
コンパイル使用メモリ | 30,948 KB |
実行使用メモリ | 23,656 KB |
最終ジャッジ日時 | 2025-04-09 23:24:56 |
合計ジャッジ時間 | 1,568 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 5 WA * 1 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 09 APR 2025 11:24:53 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.006
ソースコード
(defvar x) (defvar y) (defvar temp) (setq temp (read-from-string (concatenate 'string "(" (read-line) ")"))) (setq x (nth 0 temp)) (setq y (nth 1 temp)) (defvar temp) (defvar ans) ;(setq temp (* (sqrt (+ (* x x ) (* y y))) 2)) (setq temp (sqrt (+ (* x x 4) (* y y 4))) ) ;(format t "~f~%" temp) (setq ans (ceiling temp)) (format t "~d~%" (if (= ans temp) (+ ans 1) ans))