結果

問題 No.1926 Sequence of Remainders
ユーザー 👑 rin204rin204
提出日時 2022-05-06 21:22:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 336 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 256 ms
コンパイル使用メモリ 86,804 KB
実行使用メモリ 78,900 KB
最終ジャッジ日時 2023-09-20 02:05:25
合計ジャッジ時間 15,140 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,100 KB
testcase_01 AC 312 ms
78,768 KB
testcase_02 AC 311 ms
78,792 KB
testcase_03 AC 321 ms
78,716 KB
testcase_04 AC 310 ms
78,784 KB
testcase_05 AC 309 ms
78,632 KB
testcase_06 AC 322 ms
78,608 KB
testcase_07 AC 327 ms
78,488 KB
testcase_08 AC 335 ms
78,816 KB
testcase_09 AC 327 ms
78,752 KB
testcase_10 AC 324 ms
78,732 KB
testcase_11 AC 333 ms
78,824 KB
testcase_12 AC 334 ms
78,820 KB
testcase_13 AC 329 ms
78,724 KB
testcase_14 AC 330 ms
78,848 KB
testcase_15 AC 331 ms
78,536 KB
testcase_16 AC 330 ms
78,792 KB
testcase_17 AC 323 ms
78,836 KB
testcase_18 AC 322 ms
78,656 KB
testcase_19 AC 325 ms
78,628 KB
testcase_20 AC 324 ms
78,800 KB
testcase_21 AC 327 ms
78,784 KB
testcase_22 AC 325 ms
78,828 KB
testcase_23 AC 330 ms
78,456 KB
testcase_24 AC 324 ms
78,660 KB
testcase_25 AC 325 ms
78,800 KB
testcase_26 AC 329 ms
78,800 KB
testcase_27 AC 328 ms
78,724 KB
testcase_28 AC 322 ms
78,628 KB
testcase_29 AC 324 ms
78,808 KB
testcase_30 AC 336 ms
78,900 KB
testcase_31 AC 328 ms
78,512 KB
testcase_32 AC 324 ms
78,452 KB
testcase_33 AC 325 ms
78,444 KB
testcase_34 AC 328 ms
78,716 KB
testcase_35 AC 326 ms
78,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    n, m, k = map(int, input().split())
    a = k % m
    if a >= (m - n):
        print(0)
    else:
        print(a)

for _ in range(int(input())):
    solve()
0