結果

問題 No.1926 Sequence of Remainders
ユーザー Omura ShunsukeOmura Shunsuke
提出日時 2022-05-11 22:36:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 342 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 1,142 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 78,720 KB
最終ジャッジ日時 2023-09-26 14:05:37
合計ジャッジ時間 19,671 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,212 KB
testcase_01 AC 306 ms
77,664 KB
testcase_02 AC 301 ms
77,580 KB
testcase_03 AC 340 ms
78,156 KB
testcase_04 AC 342 ms
77,788 KB
testcase_05 AC 340 ms
78,344 KB
testcase_06 AC 323 ms
77,556 KB
testcase_07 AC 325 ms
78,320 KB
testcase_08 AC 325 ms
78,332 KB
testcase_09 AC 328 ms
78,588 KB
testcase_10 AC 318 ms
78,524 KB
testcase_11 AC 322 ms
78,160 KB
testcase_12 AC 314 ms
78,328 KB
testcase_13 AC 313 ms
78,328 KB
testcase_14 AC 322 ms
77,796 KB
testcase_15 AC 323 ms
77,352 KB
testcase_16 AC 325 ms
78,544 KB
testcase_17 AC 325 ms
77,628 KB
testcase_18 AC 327 ms
78,524 KB
testcase_19 AC 323 ms
78,324 KB
testcase_20 AC 322 ms
78,100 KB
testcase_21 AC 321 ms
77,612 KB
testcase_22 AC 316 ms
77,632 KB
testcase_23 AC 319 ms
77,608 KB
testcase_24 AC 320 ms
77,524 KB
testcase_25 AC 324 ms
77,352 KB
testcase_26 AC 341 ms
78,476 KB
testcase_27 AC 322 ms
78,292 KB
testcase_28 AC 318 ms
78,636 KB
testcase_29 AC 323 ms
78,660 KB
testcase_30 AC 320 ms
77,560 KB
testcase_31 AC 320 ms
77,568 KB
testcase_32 AC 321 ms
78,548 KB
testcase_33 AC 325 ms
78,720 KB
testcase_34 AC 326 ms
78,324 KB
testcase_35 AC 328 ms
78,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

Q = int(input())
for i in range(Q):
    N,M,K = map(int,input().split())
    K = K%M
    if K >= (M-N):
        print(0)
    else:
        print(K)
0