結果
| 問題 | No.64 XORフィボナッチ数列 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-05 12:02:49 |
| 言語 | Common Lisp (sbcl 2.6.9) |
| 結果 |
AC
不安定
|
| 実行時間 | 6 ms / 5,000 ms |
| + 809µs | |
| コード長 | 309 bytes |
| 記録 | |
| コンパイル時間 | 258 ms |
| コンパイル使用メモリ | 34,464 KB |
| 実行使用メモリ | 27,772 KB |
| 最終ジャッジ日時 | 2026-10-11 11:01:46 |
| 合計ジャッジ時間 | 1,395 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 11 OCT 2026 11:01:44 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.031
ソースコード
(defvar F0)
(defvar F1)
(defvar N)
(defvar temp)
(setq temp (read-from-string (concatenate 'string "(" (read-line) ")")))
(setq F0 (nth 0 temp))
(setq F1 (nth 1 temp))
(setq N (nth 2 temp))
;(format t "~d ~d~%" N M)
(setq temp 0)
(format t "~d~%" (case (mod N 3) (0 F0) (1 F1) (otherwise (logxor F0 F1))))