結果

問題 No.744 循環小数N桁目 Easy
コンテスト
ユーザー betit0919
提出日時 2020-06-22 00:19:22
言語 Common Lisp
(sbcl 2.6.3)
コンパイル:
sbclc _filename_
実行:
sbcl --script Main.fasl
結果
AC  
実行時間 4 ms / 2,000 ms
+ 892µs
コード長 134 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 13 ms
コンパイル使用メモリ 27,264 KB
実行使用メモリ 19,584 KB
最終ジャッジ日時 2026-08-05 08:16:46
合計ジャッジ時間 1,260 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 05 AUG 2026 08:16:43 AM):

; wrote /home/judge/data/code/Main.fasl
; compilation finished in 0:00:00.003

ソースコード

diff #
raw source code

(defun solve (n)
  (case (rem n 6)
    (0 4)
    (1 2)
    (2 8)
    (3 5)
    (4 7)
    (5 1)
  )
)

(format t "~A~%" (solve (read)))
0