結果

問題 No.1926 Sequence of Remainders
ユーザー KudeKude
提出日時 2022-05-06 21:24:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 343 ms / 2,000 ms
コード長 124 bytes
コンパイル時間 378 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 78,744 KB
最終ジャッジ日時 2023-09-20 02:09:57
合計ジャッジ時間 14,996 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,460 KB
testcase_01 AC 307 ms
77,576 KB
testcase_02 AC 313 ms
77,488 KB
testcase_03 AC 343 ms
77,956 KB
testcase_04 AC 333 ms
78,080 KB
testcase_05 AC 327 ms
78,296 KB
testcase_06 AC 321 ms
78,728 KB
testcase_07 AC 331 ms
78,692 KB
testcase_08 AC 320 ms
78,592 KB
testcase_09 AC 321 ms
78,684 KB
testcase_10 AC 327 ms
78,564 KB
testcase_11 AC 326 ms
78,464 KB
testcase_12 AC 324 ms
78,568 KB
testcase_13 AC 325 ms
78,636 KB
testcase_14 AC 328 ms
78,668 KB
testcase_15 AC 320 ms
78,712 KB
testcase_16 AC 334 ms
78,324 KB
testcase_17 AC 323 ms
78,396 KB
testcase_18 AC 331 ms
78,536 KB
testcase_19 AC 327 ms
78,716 KB
testcase_20 AC 323 ms
78,592 KB
testcase_21 AC 325 ms
78,624 KB
testcase_22 AC 322 ms
78,432 KB
testcase_23 AC 322 ms
78,320 KB
testcase_24 AC 323 ms
78,584 KB
testcase_25 AC 323 ms
78,336 KB
testcase_26 AC 325 ms
78,744 KB
testcase_27 AC 323 ms
78,372 KB
testcase_28 AC 327 ms
78,636 KB
testcase_29 AC 320 ms
78,728 KB
testcase_30 AC 327 ms
78,460 KB
testcase_31 AC 329 ms
78,580 KB
testcase_32 AC 325 ms
78,552 KB
testcase_33 AC 326 ms
78,520 KB
testcase_34 AC 324 ms
78,556 KB
testcase_35 AC 325 ms
78,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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