結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-09 23:29:49 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 410 bytes |
| コンパイル時間 | 542 ms |
| コンパイル使用メモリ | 30,952 KB |
| 実行使用メモリ | 27,672 KB |
| 最終ジャッジ日時 | 2025-04-09 23:29:51 |
| 合計ジャッジ時間 | 1,517 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | WA * 6 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 09 APR 2025 11:29:49 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.039
ソースコード
(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))
(setq y (float x))
(setq y (float y))
(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))