結果

問題 No.1926 Sequence of Remainders
コンテスト
ユーザー n_get
提出日時 2022-07-13 13:28:41
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
AC  
実行時間 306 ms / 2,000 ms
+ 990µs
コード長 214 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 17 ms
コンパイル使用メモリ 5,888 KB
実行使用メモリ 21,248 KB
最終ジャッジ日時 2026-07-29 04:45:00
合計ジャッジ時間 14,267 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

(dotimes [q (read)]
         (let* [[n (read)][m (read)][k (read)]]
               (let [[x (mod k m)]]
                    (if (>= x (- m n))
                        (print 0)
                        (print x)))))
0