結果

問題 No.744 循環小数N桁目 Easy
ユーザー betit0919betit0919
提出日時 2020-06-22 00:19:22
言語 Common Lisp
(sbcl 2.3.8)
結果
AC  
実行時間 8 ms / 2,000 ms
コード長 134 bytes
コンパイル時間 420 ms
コンパイル使用メモリ 29,472 KB
実行使用メモリ 24,648 KB
最終ジャッジ日時 2023-09-16 18:57:54
合計ジャッジ時間 1,187 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
22,580 KB
testcase_01 AC 7 ms
22,508 KB
testcase_02 AC 8 ms
22,620 KB
testcase_03 AC 8 ms
22,540 KB
testcase_04 AC 8 ms
22,572 KB
testcase_05 AC 8 ms
22,592 KB
testcase_06 AC 8 ms
22,516 KB
testcase_07 AC 8 ms
24,648 KB
testcase_08 AC 7 ms
22,536 KB
testcase_09 AC 7 ms
24,632 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 16 SEP 2023 06:57:53 PM):
; processing (DEFUN SOLVE ...)
; processing (FORMAT T ...)

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

ソースコード

diff #

(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