結果

問題 No.1926 Sequence of Remainders
ユーザー june19312june19312
提出日時 2022-05-10 17:09:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 334 ms / 2,000 ms
コード長 162 bytes
コンパイル時間 1,022 ms
コンパイル使用メモリ 87,092 KB
実行使用メモリ 78,868 KB
最終ジャッジ日時 2023-09-24 23:10:21
合計ジャッジ時間 19,368 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,328 KB
testcase_01 AC 308 ms
77,592 KB
testcase_02 AC 304 ms
77,580 KB
testcase_03 AC 334 ms
78,216 KB
testcase_04 AC 334 ms
77,752 KB
testcase_05 AC 334 ms
78,220 KB
testcase_06 AC 320 ms
78,504 KB
testcase_07 AC 314 ms
78,616 KB
testcase_08 AC 327 ms
78,428 KB
testcase_09 AC 326 ms
78,664 KB
testcase_10 AC 320 ms
78,528 KB
testcase_11 AC 325 ms
78,868 KB
testcase_12 AC 323 ms
78,528 KB
testcase_13 AC 324 ms
78,264 KB
testcase_14 AC 325 ms
78,544 KB
testcase_15 AC 318 ms
78,524 KB
testcase_16 AC 318 ms
78,664 KB
testcase_17 AC 316 ms
78,456 KB
testcase_18 AC 327 ms
78,784 KB
testcase_19 AC 323 ms
78,496 KB
testcase_20 AC 323 ms
78,652 KB
testcase_21 AC 322 ms
78,628 KB
testcase_22 AC 327 ms
78,484 KB
testcase_23 AC 324 ms
78,480 KB
testcase_24 AC 324 ms
78,512 KB
testcase_25 AC 323 ms
78,488 KB
testcase_26 AC 323 ms
78,532 KB
testcase_27 AC 330 ms
78,528 KB
testcase_28 AC 330 ms
78,600 KB
testcase_29 AC 322 ms
78,260 KB
testcase_30 AC 324 ms
78,464 KB
testcase_31 AC 325 ms
78,492 KB
testcase_32 AC 322 ms
78,592 KB
testcase_33 AC 321 ms
78,368 KB
testcase_34 AC 325 ms
78,472 KB
testcase_35 AC 322 ms
78,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())

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

    tmp = K%M
    a = M-N

    if a>tmp:
        print(tmp)
    else:
        print(0)
0