結果

問題 No.1926 Sequence of Remainders
ユーザー 👑 colognecologne
提出日時 2022-05-10 14:37:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 328 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 86,840 KB
実行使用メモリ 77,500 KB
最終ジャッジ日時 2023-09-24 19:42:33
合計ジャッジ時間 19,789 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
70,856 KB
testcase_01 AC 305 ms
77,084 KB
testcase_02 AC 299 ms
77,088 KB
testcase_03 AC 309 ms
77,240 KB
testcase_04 AC 302 ms
77,228 KB
testcase_05 AC 306 ms
77,256 KB
testcase_06 AC 325 ms
77,416 KB
testcase_07 AC 324 ms
77,216 KB
testcase_08 AC 323 ms
77,288 KB
testcase_09 AC 324 ms
77,364 KB
testcase_10 AC 327 ms
77,292 KB
testcase_11 AC 327 ms
77,080 KB
testcase_12 AC 322 ms
77,188 KB
testcase_13 AC 320 ms
77,084 KB
testcase_14 AC 317 ms
77,080 KB
testcase_15 AC 324 ms
76,896 KB
testcase_16 AC 325 ms
77,084 KB
testcase_17 AC 326 ms
77,196 KB
testcase_18 AC 322 ms
77,256 KB
testcase_19 AC 323 ms
77,292 KB
testcase_20 AC 325 ms
77,416 KB
testcase_21 AC 325 ms
77,368 KB
testcase_22 AC 317 ms
76,904 KB
testcase_23 AC 325 ms
77,240 KB
testcase_24 AC 323 ms
77,184 KB
testcase_25 AC 325 ms
77,292 KB
testcase_26 AC 325 ms
77,324 KB
testcase_27 AC 325 ms
77,288 KB
testcase_28 AC 322 ms
77,212 KB
testcase_29 AC 319 ms
76,892 KB
testcase_30 AC 328 ms
77,264 KB
testcase_31 AC 320 ms
77,368 KB
testcase_32 AC 324 ms
77,500 KB
testcase_33 AC 321 ms
76,892 KB
testcase_34 AC 325 ms
77,248 KB
testcase_35 AC 321 ms
77,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    T = int(input())
    for i in range(T):
        N, M, K = map(int, input().split())
        A0 = K % M
        if N >= M-A0:
            A0 = 0
        print(A0)


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