結果
| 問題 |
No.2480 Sequence Sum
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-02 16:33:48 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 15 ms / 500 ms |
| コード長 | 282 bytes |
| コンパイル時間 | 295 ms |
| コンパイル使用メモリ | 35,072 KB |
| 実行使用メモリ | 31,892 KB |
| 最終ジャッジ日時 | 2024-11-02 16:33:49 |
| 合計ジャッジ時間 | 1,591 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 02 NOV 2024 04:33:48 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.007
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((n (read))
(a n))
(loop for i from 1 to (sqrt n)
when (zerop (mod n i))
do (decf a)
(when (< (* i i) n)
(decf a)))
(format t "~d~%" a)))
(main)
Common Lisp