結果
問題 | No.713 素数の和 |
ユーザー |
![]() |
提出日時 | 2024-11-07 19:50:21 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 351 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 27,136 KB |
実行使用メモリ | 21,888 KB |
最終ジャッジ日時 | 2024-11-07 19:50:22 |
合計ジャッジ時間 | 898 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 07 NOV 2024 07:50:21 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.028
ソースコード
(defun main (&rest argv)(declare (ignorable argv))(let* ((n (read))(res 0))(loop for i from 1 to n do(let ((c 0))(loop for j from 1 to nwhen (zerop (mod i j))do (incf c))(when (= c 2)(incf res i))))(format t "~d~%" res)))(main)