結果

問題 No.2781 A%B問題
コンテスト
ユーザー Lisp_Coder
提出日時 2024-06-17 13:13:40
言語 Common Lisp
(sbcl 2.6.1)
コンパイル:
sbclc _filename_
実行:
sbcl --script Main.fasl
結果
AC  
実行時間 9 ms / 2,000 ms
コード長 158 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 831 ms
コンパイル使用メモリ 37,388 KB
実行使用メモリ 32,644 KB
最終ジャッジ日時 2026-03-06 03:48:02
合計ジャッジ時間 963 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 06 MAR 2026 03:47:58 AM):

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

ソースコード

diff #
raw source code

(defun main ()
  (let* ((a (read))
         (b (read))
         (remainder (mod a (abs b))))
    (when remainder
      (format t "~d~%" remainder))))

(main)
0