結果

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

; 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)))
    (if (< b 0)
        (format t "~d~%" (rem a b))
        (format t "~d~%" (mod a b)))))

(main)
0