結果

問題 No.1926 Sequence of Remainders
ユーザー ThetaTheta
提出日時 2022-12-19 19:24:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 568 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 697 ms
コンパイル使用メモリ 10,572 KB
実行使用メモリ 7,952 KB
最終ジャッジ日時 2023-08-11 09:54:00
合計ジャッジ時間 28,754 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,904 KB
testcase_01 AC 542 ms
7,784 KB
testcase_02 AC 544 ms
7,812 KB
testcase_03 AC 542 ms
7,784 KB
testcase_04 AC 539 ms
7,892 KB
testcase_05 AC 540 ms
7,872 KB
testcase_06 AC 560 ms
7,824 KB
testcase_07 AC 559 ms
7,924 KB
testcase_08 AC 556 ms
7,768 KB
testcase_09 AC 566 ms
7,776 KB
testcase_10 AC 567 ms
7,908 KB
testcase_11 AC 560 ms
7,940 KB
testcase_12 AC 560 ms
7,824 KB
testcase_13 AC 567 ms
7,772 KB
testcase_14 AC 562 ms
7,828 KB
testcase_15 AC 558 ms
7,824 KB
testcase_16 AC 566 ms
7,844 KB
testcase_17 AC 567 ms
7,912 KB
testcase_18 AC 560 ms
7,796 KB
testcase_19 AC 558 ms
7,776 KB
testcase_20 AC 564 ms
7,812 KB
testcase_21 AC 562 ms
7,868 KB
testcase_22 AC 568 ms
7,828 KB
testcase_23 AC 559 ms
7,908 KB
testcase_24 AC 560 ms
7,824 KB
testcase_25 AC 560 ms
7,904 KB
testcase_26 AC 565 ms
7,824 KB
testcase_27 AC 562 ms
7,768 KB
testcase_28 AC 559 ms
7,920 KB
testcase_29 AC 562 ms
7,852 KB
testcase_30 AC 561 ms
7,768 KB
testcase_31 AC 561 ms
7,832 KB
testcase_32 AC 566 ms
7,948 KB
testcase_33 AC 560 ms
7,872 KB
testcase_34 AC 566 ms
7,952 KB
testcase_35 AC 567 ms
7,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    for _ in range(int(input())):
        N, M, K = map(int, input().split())
        seq_value = K % M
        idx = 1
        if seq_value < M - N:
            print(seq_value)
        else:
            print(0)


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