結果
| 問題 | No.2749 随伴関手入門 |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-13 21:48:45 |
| 言語 | Common Lisp (sbcl 2.6.9) |
| 結果 |
AC
不安定
|
| 実行時間 | 7 ms / 2,000 ms |
| + 543µs | |
| コード長 | 342 bytes |
| 記録 | |
| コンパイル時間 | 1,026 ms |
| コンパイル使用メモリ | 32,708 KB |
| 実行使用メモリ | 27,644 KB |
| 最終ジャッジ日時 | 2026-10-25 08:09:42 |
| 合計ジャッジ時間 | 2,949 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge6_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 25 OCT 2026 08:09:38 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.024
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((n (read))
(a (mod 1 n))
(b (mod 1 n))
(tmp 0)
(res 1))
(loop while (not (zerop a)) do
(setf res (1+ res)
tmp a
a (mod b n)
b (mod (+ tmp b) n)))
(format t "~d~%" res)))
(main)
Common Lisp