結果

問題 No.1926 Sequence of Remainders
ユーザー Akijin_007Akijin_007
提出日時 2022-05-06 21:28:20
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 230 ms / 2,000 ms
コード長 370 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 89,624 KB
最終ジャッジ日時 2023-09-20 02:17:56
合計ジャッジ時間 11,049 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,264 KB
testcase_01 AC 205 ms
89,256 KB
testcase_02 AC 207 ms
89,216 KB
testcase_03 AC 209 ms
89,160 KB
testcase_04 AC 204 ms
89,180 KB
testcase_05 AC 207 ms
89,100 KB
testcase_06 AC 215 ms
89,476 KB
testcase_07 AC 214 ms
89,504 KB
testcase_08 AC 213 ms
89,560 KB
testcase_09 AC 211 ms
89,624 KB
testcase_10 AC 214 ms
89,468 KB
testcase_11 AC 211 ms
89,460 KB
testcase_12 AC 222 ms
89,460 KB
testcase_13 AC 216 ms
89,532 KB
testcase_14 AC 225 ms
89,200 KB
testcase_15 AC 214 ms
89,576 KB
testcase_16 AC 216 ms
89,204 KB
testcase_17 AC 217 ms
89,476 KB
testcase_18 AC 218 ms
89,204 KB
testcase_19 AC 213 ms
89,460 KB
testcase_20 AC 214 ms
89,412 KB
testcase_21 AC 230 ms
89,484 KB
testcase_22 AC 217 ms
89,472 KB
testcase_23 AC 215 ms
89,412 KB
testcase_24 AC 219 ms
89,444 KB
testcase_25 AC 216 ms
89,428 KB
testcase_26 AC 215 ms
89,364 KB
testcase_27 AC 214 ms
89,448 KB
testcase_28 AC 216 ms
89,308 KB
testcase_29 AC 219 ms
89,460 KB
testcase_30 AC 217 ms
89,260 KB
testcase_31 AC 213 ms
89,328 KB
testcase_32 AC 221 ms
89,376 KB
testcase_33 AC 218 ms
89,408 KB
testcase_34 AC 215 ms
89,436 KB
testcase_35 AC 214 ms
89,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#int(input())
#map(int, input().split())
#list(map(int, input().split()))

T = int(input())

K = [0] * T

for i in range(T):
    K[i] = list(map(int, input().split()))

ans = [0] * T
for i in range(T):
    n = K[i][0]
    m = K[i][1]
    k = K[i][2]

    a = k % m
    if m - n <= a:
        ans[i] = 0
    else:
        ans[i] = a

for i in range(T):
    print(ans[i])
0