結果

問題 No.1926 Sequence of Remainders
ユーザー tktk_snsntktk_snsn
提出日時 2022-05-23 17:55:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 624 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 637 ms
コンパイル使用メモリ 11,772 KB
実行使用メモリ 10,072 KB
最終ジャッジ日時 2023-10-20 17:40:49
合計ジャッジ時間 24,041 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
10,056 KB
testcase_01 AC 532 ms
10,072 KB
testcase_02 AC 552 ms
10,072 KB
testcase_03 AC 530 ms
10,072 KB
testcase_04 AC 538 ms
10,072 KB
testcase_05 AC 562 ms
10,072 KB
testcase_06 AC 542 ms
10,072 KB
testcase_07 AC 568 ms
10,072 KB
testcase_08 AC 553 ms
10,072 KB
testcase_09 AC 562 ms
10,072 KB
testcase_10 AC 560 ms
10,072 KB
testcase_11 AC 624 ms
9,864 KB
testcase_12 AC 575 ms
9,960 KB
testcase_13 AC 553 ms
10,072 KB
testcase_14 AC 549 ms
10,072 KB
testcase_15 AC 566 ms
10,072 KB
testcase_16 AC 565 ms
10,072 KB
testcase_17 AC 555 ms
10,072 KB
testcase_18 AC 554 ms
10,072 KB
testcase_19 AC 542 ms
10,072 KB
testcase_20 AC 545 ms
10,072 KB
testcase_21 AC 537 ms
10,072 KB
testcase_22 AC 539 ms
10,072 KB
testcase_23 AC 561 ms
10,072 KB
testcase_24 AC 548 ms
10,072 KB
testcase_25 AC 576 ms
10,072 KB
testcase_26 AC 569 ms
10,072 KB
testcase_27 AC 560 ms
10,072 KB
testcase_28 AC 564 ms
10,072 KB
testcase_29 AC 549 ms
10,072 KB
testcase_30 AC 569 ms
10,072 KB
testcase_31 AC 548 ms
10,072 KB
testcase_32 AC 572 ms
10,072 KB
testcase_33 AC 561 ms
10,072 KB
testcase_34 AC 557 ms
10,072 KB
testcase_35 AC 561 ms
10,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N, M, K = map(int, input().split())
    K %= M
    if N >= M - K:
        return 0
    return K


T = int(input())
for _ in range(T):
    print(main())
0