結果

問題 No.2781 A%B問題
コンテスト
ユーザー NixOS_and_Gentoo
提出日時 2024-06-17 13:13:40
言語 Common Lisp
(sbcl 2.6.3)
コンパイル:
sbclc _filename_
実行:
sbcl --script Main.fasl
結果
AC  
実行時間 5 ms / 2,000 ms
+ 703µs
コード長 158 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 12 ms
コンパイル使用メモリ 26,368 KB
実行使用メモリ 19,712 KB
最終ジャッジ日時 2026-07-26 13:41:11
合計ジャッジ時間 1,348 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 26 JUL 2026 01:41:09 PM):

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

ソースコード

diff #
raw source code

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

(main)
0