結果

問題 No.1926 Sequence of Remainders
ユーザー ikomaikoma
提出日時 2022-05-06 21:36:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 148 ms / 2,000 ms
コード長 151 bytes
コンパイル時間 667 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 78,408 KB
最終ジャッジ日時 2023-09-20 02:30:21
合計ジャッジ時間 8,876 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,540 KB
testcase_01 AC 128 ms
77,672 KB
testcase_02 AC 131 ms
77,756 KB
testcase_03 AC 145 ms
77,876 KB
testcase_04 AC 143 ms
78,408 KB
testcase_05 AC 148 ms
78,044 KB
testcase_06 AC 142 ms
77,552 KB
testcase_07 AC 139 ms
77,636 KB
testcase_08 AC 140 ms
77,460 KB
testcase_09 AC 143 ms
77,628 KB
testcase_10 AC 139 ms
77,548 KB
testcase_11 AC 141 ms
77,588 KB
testcase_12 AC 140 ms
77,524 KB
testcase_13 AC 140 ms
77,360 KB
testcase_14 AC 142 ms
77,580 KB
testcase_15 AC 140 ms
77,672 KB
testcase_16 AC 144 ms
77,548 KB
testcase_17 AC 142 ms
77,544 KB
testcase_18 AC 142 ms
77,476 KB
testcase_19 AC 139 ms
77,544 KB
testcase_20 AC 140 ms
77,280 KB
testcase_21 AC 143 ms
77,660 KB
testcase_22 AC 144 ms
77,724 KB
testcase_23 AC 144 ms
77,600 KB
testcase_24 AC 145 ms
77,248 KB
testcase_25 AC 142 ms
77,460 KB
testcase_26 AC 139 ms
77,504 KB
testcase_27 AC 146 ms
77,436 KB
testcase_28 AC 142 ms
77,356 KB
testcase_29 AC 142 ms
77,488 KB
testcase_30 AC 140 ms
77,436 KB
testcase_31 AC 140 ms
77,372 KB
testcase_32 AC 145 ms
77,584 KB
testcase_33 AC 142 ms
77,516 KB
testcase_34 AC 139 ms
77,660 KB
testcase_35 AC 142 ms
77,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline


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