結果

問題 No.1926 Sequence of Remainders
ユーザー titiatitia
提出日時 2022-05-06 21:27:24
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 226 ms / 2,000 ms
コード長 183 bytes
コンパイル時間 1,020 ms
コンパイル使用メモリ 10,572 KB
実行使用メモリ 8,440 KB
最終ジャッジ日時 2023-09-20 02:16:57
合計ジャッジ時間 11,211 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,792 KB
testcase_01 AC 202 ms
8,396 KB
testcase_02 AC 201 ms
8,404 KB
testcase_03 AC 201 ms
8,384 KB
testcase_04 AC 210 ms
8,440 KB
testcase_05 AC 207 ms
8,312 KB
testcase_06 AC 224 ms
8,180 KB
testcase_07 AC 220 ms
8,244 KB
testcase_08 AC 222 ms
8,208 KB
testcase_09 AC 220 ms
8,236 KB
testcase_10 AC 219 ms
8,180 KB
testcase_11 AC 222 ms
8,248 KB
testcase_12 AC 220 ms
8,212 KB
testcase_13 AC 220 ms
8,176 KB
testcase_14 AC 221 ms
8,336 KB
testcase_15 AC 218 ms
8,356 KB
testcase_16 AC 222 ms
8,220 KB
testcase_17 AC 225 ms
8,356 KB
testcase_18 AC 219 ms
8,332 KB
testcase_19 AC 221 ms
8,196 KB
testcase_20 AC 225 ms
8,400 KB
testcase_21 AC 226 ms
8,340 KB
testcase_22 AC 217 ms
8,180 KB
testcase_23 AC 224 ms
8,172 KB
testcase_24 AC 221 ms
8,324 KB
testcase_25 AC 220 ms
8,308 KB
testcase_26 AC 222 ms
8,376 KB
testcase_27 AC 218 ms
8,232 KB
testcase_28 AC 222 ms
8,252 KB
testcase_29 AC 222 ms
8,240 KB
testcase_30 AC 222 ms
8,216 KB
testcase_31 AC 223 ms
8,356 KB
testcase_32 AC 222 ms
8,236 KB
testcase_33 AC 221 ms
8,144 KB
testcase_34 AC 221 ms
8,304 KB
testcase_35 AC 219 ms
8,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

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

    X=K%M

    if M-N<=X:
        print(0)
    else:
        print(X)
0