結果

問題 No.1926 Sequence of Remainders
ユーザー ryusukeryusuke
提出日時 2022-05-06 21:39:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 364 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 616 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 78,836 KB
最終ジャッジ日時 2023-09-20 02:32:24
合計ジャッジ時間 15,645 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,260 KB
testcase_01 AC 313 ms
77,656 KB
testcase_02 AC 316 ms
77,420 KB
testcase_03 AC 346 ms
78,376 KB
testcase_04 AC 364 ms
78,308 KB
testcase_05 AC 350 ms
78,304 KB
testcase_06 AC 338 ms
77,532 KB
testcase_07 AC 333 ms
78,620 KB
testcase_08 AC 335 ms
78,700 KB
testcase_09 AC 329 ms
78,700 KB
testcase_10 AC 334 ms
78,724 KB
testcase_11 AC 335 ms
78,812 KB
testcase_12 AC 334 ms
78,620 KB
testcase_13 AC 333 ms
78,720 KB
testcase_14 AC 338 ms
77,624 KB
testcase_15 AC 340 ms
77,784 KB
testcase_16 AC 335 ms
78,732 KB
testcase_17 AC 335 ms
77,636 KB
testcase_18 AC 340 ms
78,784 KB
testcase_19 AC 335 ms
78,772 KB
testcase_20 AC 336 ms
78,836 KB
testcase_21 AC 330 ms
77,472 KB
testcase_22 AC 330 ms
78,520 KB
testcase_23 AC 338 ms
77,612 KB
testcase_24 AC 334 ms
77,360 KB
testcase_25 AC 330 ms
77,592 KB
testcase_26 AC 339 ms
78,704 KB
testcase_27 AC 332 ms
78,772 KB
testcase_28 AC 337 ms
78,588 KB
testcase_29 AC 343 ms
78,436 KB
testcase_30 AC 336 ms
78,364 KB
testcase_31 AC 342 ms
78,692 KB
testcase_32 AC 335 ms
78,724 KB
testcase_33 AC 337 ms
78,556 KB
testcase_34 AC 333 ms
78,772 KB
testcase_35 AC 338 ms
78,404 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    n, m, k = map(int, input().split())
    r = k % m
    if m - r <= n:
        print(0)
    else:
        print(k % m)
0