結果

問題 No.1926 Sequence of Remainders
ユーザー lilictakalilictaka
提出日時 2022-05-06 21:38:23
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 190 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 558 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 83,928 KB
最終ジャッジ日時 2023-09-20 02:31:22
合計ジャッジ時間 9,819 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,276 KB
testcase_01 AC 161 ms
83,212 KB
testcase_02 AC 166 ms
83,348 KB
testcase_03 AC 187 ms
83,060 KB
testcase_04 AC 189 ms
83,216 KB
testcase_05 AC 190 ms
83,344 KB
testcase_06 AC 176 ms
82,676 KB
testcase_07 AC 179 ms
82,884 KB
testcase_08 AC 178 ms
83,024 KB
testcase_09 AC 176 ms
83,016 KB
testcase_10 AC 180 ms
82,840 KB
testcase_11 AC 178 ms
83,016 KB
testcase_12 AC 176 ms
82,852 KB
testcase_13 AC 179 ms
82,800 KB
testcase_14 AC 179 ms
83,036 KB
testcase_15 AC 179 ms
82,908 KB
testcase_16 AC 177 ms
82,836 KB
testcase_17 AC 180 ms
82,792 KB
testcase_18 AC 179 ms
83,148 KB
testcase_19 AC 180 ms
82,704 KB
testcase_20 AC 177 ms
82,676 KB
testcase_21 AC 178 ms
82,992 KB
testcase_22 AC 179 ms
82,796 KB
testcase_23 AC 181 ms
82,724 KB
testcase_24 AC 179 ms
82,820 KB
testcase_25 AC 177 ms
82,464 KB
testcase_26 AC 177 ms
83,108 KB
testcase_27 AC 178 ms
83,292 KB
testcase_28 AC 180 ms
83,624 KB
testcase_29 AC 177 ms
83,000 KB
testcase_30 AC 177 ms
83,096 KB
testcase_31 AC 177 ms
83,420 KB
testcase_32 AC 177 ms
83,500 KB
testcase_33 AC 176 ms
83,192 KB
testcase_34 AC 180 ms
83,928 KB
testcase_35 AC 177 ms
83,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
ANS = []
def solve(n,m,k):
    a0 = k % m
    if m-a0 > n:
        return a0
    else:
        return 0
for _ in range(T):
    N,M,K = map(int,input().split())
    ANS.append(solve(N,M,K))
print(*ANS,sep='\n')
0