結果

問題 No.1926 Sequence of Remainders
ユーザー 👑 tamatotamato
提出日時 2022-05-06 21:25:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 432 ms
コンパイル使用メモリ 87,000 KB
実行使用メモリ 77,816 KB
最終ジャッジ日時 2023-09-20 02:11:08
合計ジャッジ時間 8,105 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,416 KB
testcase_01 AC 121 ms
77,692 KB
testcase_02 AC 121 ms
77,332 KB
testcase_03 AC 120 ms
77,816 KB
testcase_04 AC 123 ms
77,612 KB
testcase_05 AC 124 ms
77,432 KB
testcase_06 AC 136 ms
77,580 KB
testcase_07 AC 136 ms
77,556 KB
testcase_08 AC 136 ms
77,240 KB
testcase_09 AC 135 ms
77,360 KB
testcase_10 AC 135 ms
77,556 KB
testcase_11 AC 129 ms
77,468 KB
testcase_12 AC 130 ms
77,380 KB
testcase_13 AC 127 ms
77,516 KB
testcase_14 AC 129 ms
77,472 KB
testcase_15 AC 128 ms
77,644 KB
testcase_16 AC 127 ms
77,580 KB
testcase_17 AC 127 ms
77,380 KB
testcase_18 AC 129 ms
77,324 KB
testcase_19 AC 129 ms
77,392 KB
testcase_20 AC 128 ms
77,592 KB
testcase_21 AC 135 ms
77,204 KB
testcase_22 AC 130 ms
77,304 KB
testcase_23 AC 129 ms
77,628 KB
testcase_24 AC 128 ms
77,160 KB
testcase_25 AC 127 ms
77,580 KB
testcase_26 AC 128 ms
77,416 KB
testcase_27 AC 129 ms
77,340 KB
testcase_28 AC 130 ms
77,552 KB
testcase_29 AC 129 ms
77,608 KB
testcase_30 AC 132 ms
77,360 KB
testcase_31 AC 136 ms
77,556 KB
testcase_32 AC 134 ms
77,464 KB
testcase_33 AC 128 ms
77,540 KB
testcase_34 AC 129 ms
77,592 KB
testcase_35 AC 127 ms
77,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353


def main():
    import sys
    input = sys.stdin.readline

    for _ in range(int(input())):
        N, M, K = map(int, input().split())

        a = K % M
        if M - N <= a:
            print(0)
        else:
            print(a)


if __name__ == '__main__':
    main()
0