結果
| 問題 | No.480 合計 |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-10-09 22:51:17 |
| 言語 | Common Lisp (sbcl 2.6.7) |
| 結果 |
AC
不安定
|
| 実行時間 | 5 ms / 2,000 ms |
| + 812µs | |
| コード長 | 218 bytes |
| 記録 | |
| コンパイル時間 | 12 ms |
| コンパイル使用メモリ | 25,984 KB |
| 実行使用メモリ | 19,712 KB |
| 最終ジャッジ日時 | 2026-09-12 21:09:35 |
| 合計ジャッジ時間 | 1,825 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 12 SEP 2026 09:09:33 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.001
ソースコード
; 自然数 1 から n までの和は n * (n + 1) / 2 で求まる
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((n (read))
(ans (floor (* n (1+ n)) 2)))
(princ ans)
(terpri)))
(main)
Common Lisp