結果

問題 No.1926 Sequence of Remainders
ユーザー ああいいああいい
提出日時 2022-05-08 08:07:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 359 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 533 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 79,248 KB
最終ジャッジ日時 2023-09-22 01:20:36
合計ジャッジ時間 20,201 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,404 KB
testcase_01 AC 320 ms
78,448 KB
testcase_02 AC 316 ms
78,548 KB
testcase_03 AC 347 ms
79,072 KB
testcase_04 AC 348 ms
79,120 KB
testcase_05 AC 344 ms
79,248 KB
testcase_06 AC 337 ms
78,748 KB
testcase_07 AC 339 ms
78,608 KB
testcase_08 AC 337 ms
78,624 KB
testcase_09 AC 336 ms
78,676 KB
testcase_10 AC 339 ms
78,624 KB
testcase_11 AC 333 ms
78,640 KB
testcase_12 AC 331 ms
78,608 KB
testcase_13 AC 345 ms
78,736 KB
testcase_14 AC 347 ms
78,644 KB
testcase_15 AC 336 ms
78,376 KB
testcase_16 AC 330 ms
78,528 KB
testcase_17 AC 352 ms
78,536 KB
testcase_18 AC 338 ms
78,660 KB
testcase_19 AC 336 ms
78,608 KB
testcase_20 AC 336 ms
78,544 KB
testcase_21 AC 328 ms
78,644 KB
testcase_22 AC 331 ms
78,616 KB
testcase_23 AC 333 ms
78,568 KB
testcase_24 AC 330 ms
78,620 KB
testcase_25 AC 335 ms
78,636 KB
testcase_26 AC 335 ms
78,460 KB
testcase_27 AC 359 ms
78,360 KB
testcase_28 AC 328 ms
78,548 KB
testcase_29 AC 342 ms
78,632 KB
testcase_30 AC 333 ms
78,660 KB
testcase_31 AC 337 ms
78,748 KB
testcase_32 AC 334 ms
78,612 KB
testcase_33 AC 331 ms
78,684 KB
testcase_34 AC 330 ms
78,672 KB
testcase_35 AC 329 ms
78,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())

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