結果

問題 No.1926 Sequence of Remainders
ユーザー akasia_midoriakasia_midori
提出日時 2022-05-06 21:28:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 361 ms / 2,000 ms
コード長 302 bytes
コンパイル時間 500 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 80,416 KB
最終ジャッジ日時 2023-09-20 02:20:10
合計ジャッジ時間 15,904 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,176 KB
testcase_01 AC 327 ms
78,976 KB
testcase_02 AC 324 ms
78,740 KB
testcase_03 AC 360 ms
80,416 KB
testcase_04 AC 357 ms
79,312 KB
testcase_05 AC 361 ms
79,896 KB
testcase_06 AC 342 ms
78,744 KB
testcase_07 AC 344 ms
78,820 KB
testcase_08 AC 336 ms
78,568 KB
testcase_09 AC 345 ms
78,904 KB
testcase_10 AC 344 ms
78,816 KB
testcase_11 AC 340 ms
78,744 KB
testcase_12 AC 342 ms
78,812 KB
testcase_13 AC 337 ms
78,568 KB
testcase_14 AC 358 ms
78,624 KB
testcase_15 AC 342 ms
78,816 KB
testcase_16 AC 341 ms
78,808 KB
testcase_17 AC 343 ms
78,852 KB
testcase_18 AC 343 ms
78,860 KB
testcase_19 AC 341 ms
78,704 KB
testcase_20 AC 335 ms
78,896 KB
testcase_21 AC 345 ms
78,828 KB
testcase_22 AC 340 ms
78,884 KB
testcase_23 AC 358 ms
78,852 KB
testcase_24 AC 343 ms
78,836 KB
testcase_25 AC 344 ms
78,808 KB
testcase_26 AC 348 ms
78,976 KB
testcase_27 AC 337 ms
78,720 KB
testcase_28 AC 341 ms
78,820 KB
testcase_29 AC 344 ms
78,808 KB
testcase_30 AC 356 ms
78,700 KB
testcase_31 AC 341 ms
78,900 KB
testcase_32 AC 338 ms
78,900 KB
testcase_33 AC 346 ms
78,908 KB
testcase_34 AC 352 ms
78,716 KB
testcase_35 AC 350 ms
78,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def one_str():
    return input()

def many_int():
    return list(map(int, input().split()))

input_count = 0
T = int(input())

def calc(N, M, K):
    count = 0
    K = K%M
    if K >= M-N:
        return 0
    else:
        return K

for i in range(T):
    N, M, K = many_int()
    print(calc(N,M,K))
0