結果
| 問題 |
No.1063 ルートの計算 / Sqrt Calculation
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-06 01:41:00 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 2,000 ms |
| コード長 | 255 bytes |
| コンパイル時間 | 70 ms |
| コンパイル使用メモリ | 33,244 KB |
| 実行使用メモリ | 32,020 KB |
| 最終ジャッジ日時 | 2024-11-06 01:41:27 |
| 合計ジャッジ時間 | 1,108 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 06 NOV 2024 01:41:25 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.006
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((n (read)))
(loop for i from (ash 1 15) downto 1
when (zerop (mod n (* i i)))
do (format t "~d ~d~%" i (floor n (* i i)))
(return-from main))))
(main)
Common Lisp