結果

問題 No.1926 Sequence of Remainders
ユーザー n_getn_get
提出日時 2022-07-13 13:28:41
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 379 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 15,576 KB
最終ジャッジ日時 2023-09-06 21:06:26
合計ジャッジ時間 16,489 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
12,784 KB
testcase_01 AC 313 ms
15,344 KB
testcase_02 AC 307 ms
15,492 KB
testcase_03 AC 310 ms
15,344 KB
testcase_04 AC 303 ms
15,388 KB
testcase_05 AC 290 ms
15,380 KB
testcase_06 AC 372 ms
15,488 KB
testcase_07 AC 363 ms
15,476 KB
testcase_08 AC 368 ms
15,416 KB
testcase_09 AC 372 ms
15,444 KB
testcase_10 AC 363 ms
15,476 KB
testcase_11 AC 370 ms
15,472 KB
testcase_12 AC 364 ms
15,516 KB
testcase_13 AC 370 ms
15,524 KB
testcase_14 AC 361 ms
15,512 KB
testcase_15 AC 363 ms
15,344 KB
testcase_16 AC 364 ms
15,344 KB
testcase_17 AC 368 ms
15,576 KB
testcase_18 AC 370 ms
15,356 KB
testcase_19 AC 364 ms
15,556 KB
testcase_20 AC 375 ms
15,504 KB
testcase_21 AC 379 ms
15,376 KB
testcase_22 AC 378 ms
15,384 KB
testcase_23 AC 379 ms
15,380 KB
testcase_24 AC 373 ms
15,416 KB
testcase_25 AC 375 ms
15,352 KB
testcase_26 AC 354 ms
15,532 KB
testcase_27 AC 351 ms
15,444 KB
testcase_28 AC 361 ms
15,532 KB
testcase_29 AC 356 ms
15,520 KB
testcase_30 AC 361 ms
15,368 KB
testcase_31 AC 353 ms
15,372 KB
testcase_32 AC 353 ms
15,348 KB
testcase_33 AC 353 ms
15,372 KB
testcase_34 AC 363 ms
15,372 KB
testcase_35 AC 352 ms
15,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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