結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,076 KB
testcase_01 AC 304 ms
77,516 KB
testcase_02 AC 304 ms
77,516 KB
testcase_03 AC 331 ms
78,200 KB
testcase_04 AC 333 ms
78,372 KB
testcase_05 AC 332 ms
78,340 KB
testcase_06 AC 322 ms
77,476 KB
testcase_07 AC 323 ms
78,448 KB
testcase_08 AC 323 ms
78,452 KB
testcase_09 AC 323 ms
78,484 KB
testcase_10 AC 319 ms
78,588 KB
testcase_11 AC 321 ms
78,552 KB
testcase_12 AC 323 ms
78,212 KB
testcase_13 AC 317 ms
78,408 KB
testcase_14 AC 328 ms
77,532 KB
testcase_15 AC 319 ms
77,516 KB
testcase_16 AC 324 ms
78,536 KB
testcase_17 AC 322 ms
77,660 KB
testcase_18 AC 324 ms
78,508 KB
testcase_19 AC 327 ms
78,536 KB
testcase_20 AC 323 ms
78,448 KB
testcase_21 AC 322 ms
77,532 KB
testcase_22 AC 320 ms
77,272 KB
testcase_23 AC 322 ms
77,228 KB
testcase_24 AC 325 ms
77,308 KB
testcase_25 AC 325 ms
77,548 KB
testcase_26 AC 323 ms
78,564 KB
testcase_27 AC 334 ms
78,664 KB
testcase_28 AC 318 ms
78,576 KB
testcase_29 AC 320 ms
78,560 KB
testcase_30 AC 326 ms
77,628 KB
testcase_31 AC 323 ms
77,552 KB
testcase_32 AC 322 ms
78,504 KB
testcase_33 AC 317 ms
78,620 KB
testcase_34 AC 322 ms
78,264 KB
testcase_35 AC 326 ms
78,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
for _ in range(t):
    n, m, k = map(int, input().split())
    if k % m >= m - n:
        print(0)
    else:
        print(k % m)
0