結果

問題 No.1926 Sequence of Remainders
ユーザー 👑 H20H20
提出日時 2022-05-06 21:41:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 349 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 530 ms
コンパイル使用メモリ 87,060 KB
実行使用メモリ 78,784 KB
最終ジャッジ日時 2023-09-20 02:33:55
合計ジャッジ時間 15,576 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,236 KB
testcase_01 AC 313 ms
77,208 KB
testcase_02 AC 321 ms
77,552 KB
testcase_03 AC 340 ms
78,320 KB
testcase_04 AC 343 ms
78,304 KB
testcase_05 AC 341 ms
78,260 KB
testcase_06 AC 330 ms
77,424 KB
testcase_07 AC 333 ms
78,484 KB
testcase_08 AC 341 ms
78,536 KB
testcase_09 AC 330 ms
78,452 KB
testcase_10 AC 344 ms
78,344 KB
testcase_11 AC 348 ms
78,604 KB
testcase_12 AC 343 ms
78,616 KB
testcase_13 AC 334 ms
78,488 KB
testcase_14 AC 342 ms
77,212 KB
testcase_15 AC 335 ms
77,424 KB
testcase_16 AC 338 ms
78,784 KB
testcase_17 AC 343 ms
77,600 KB
testcase_18 AC 333 ms
78,544 KB
testcase_19 AC 339 ms
78,684 KB
testcase_20 AC 335 ms
78,448 KB
testcase_21 AC 330 ms
77,484 KB
testcase_22 AC 331 ms
77,468 KB
testcase_23 AC 340 ms
77,548 KB
testcase_24 AC 331 ms
77,348 KB
testcase_25 AC 331 ms
77,424 KB
testcase_26 AC 336 ms
78,604 KB
testcase_27 AC 342 ms
78,472 KB
testcase_28 AC 336 ms
78,420 KB
testcase_29 AC 339 ms
78,444 KB
testcase_30 AC 349 ms
77,460 KB
testcase_31 AC 338 ms
77,264 KB
testcase_32 AC 335 ms
78,696 KB
testcase_33 AC 334 ms
78,492 KB
testcase_34 AC 336 ms
78,492 KB
testcase_35 AC 338 ms
78,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for _ in range(T):
    N,M,K = map(int, input().split())
    A0 = K%M
    if (M-N)<=A0:
        print(0)
    else:
        print(A0)
0