結果

問題 No.1926 Sequence of Remainders
ユーザー ytftytft
提出日時 2022-05-12 00:53:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 340 ms / 2,000 ms
コード長 101 bytes
コンパイル時間 346 ms
コンパイル使用メモリ 86,876 KB
実行使用メモリ 78,508 KB
最終ジャッジ日時 2023-09-26 17:03:08
合計ジャッジ時間 18,588 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,340 KB
testcase_01 AC 317 ms
77,352 KB
testcase_02 AC 309 ms
77,232 KB
testcase_03 AC 338 ms
77,836 KB
testcase_04 AC 340 ms
78,056 KB
testcase_05 AC 338 ms
78,136 KB
testcase_06 AC 325 ms
77,064 KB
testcase_07 AC 325 ms
78,180 KB
testcase_08 AC 328 ms
78,184 KB
testcase_09 AC 327 ms
78,176 KB
testcase_10 AC 329 ms
77,908 KB
testcase_11 AC 328 ms
78,356 KB
testcase_12 AC 325 ms
78,344 KB
testcase_13 AC 327 ms
78,448 KB
testcase_14 AC 323 ms
77,356 KB
testcase_15 AC 332 ms
77,260 KB
testcase_16 AC 327 ms
78,508 KB
testcase_17 AC 324 ms
77,412 KB
testcase_18 AC 328 ms
78,284 KB
testcase_19 AC 321 ms
78,360 KB
testcase_20 AC 322 ms
78,424 KB
testcase_21 AC 326 ms
77,172 KB
testcase_22 AC 329 ms
77,592 KB
testcase_23 AC 323 ms
77,472 KB
testcase_24 AC 328 ms
77,228 KB
testcase_25 AC 322 ms
77,200 KB
testcase_26 AC 325 ms
78,356 KB
testcase_27 AC 328 ms
78,276 KB
testcase_28 AC 325 ms
78,328 KB
testcase_29 AC 328 ms
78,272 KB
testcase_30 AC 333 ms
78,304 KB
testcase_31 AC 333 ms
76,976 KB
testcase_32 AC 329 ms
78,324 KB
testcase_33 AC 327 ms
78,192 KB
testcase_34 AC 330 ms
78,352 KB
testcase_35 AC 329 ms
78,172 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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