結果

問題 No.1926 Sequence of Remainders
ユーザー 👑 KazunKazun
提出日時 2022-05-06 21:27:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 373 ms
コンパイル使用メモリ 87,072 KB
実行使用メモリ 79,904 KB
最終ジャッジ日時 2023-09-20 02:16:45
合計ジャッジ時間 7,918 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,344 KB
testcase_01 AC 132 ms
78,352 KB
testcase_02 AC 106 ms
78,412 KB
testcase_03 AC 113 ms
78,624 KB
testcase_04 AC 113 ms
78,500 KB
testcase_05 AC 112 ms
78,660 KB
testcase_06 AC 122 ms
79,580 KB
testcase_07 AC 122 ms
79,332 KB
testcase_08 AC 121 ms
79,448 KB
testcase_09 AC 121 ms
79,568 KB
testcase_10 AC 121 ms
79,728 KB
testcase_11 AC 123 ms
79,620 KB
testcase_12 AC 120 ms
79,468 KB
testcase_13 AC 122 ms
79,740 KB
testcase_14 AC 123 ms
79,776 KB
testcase_15 AC 120 ms
79,572 KB
testcase_16 AC 119 ms
79,412 KB
testcase_17 AC 120 ms
79,588 KB
testcase_18 AC 122 ms
79,672 KB
testcase_19 AC 121 ms
79,640 KB
testcase_20 AC 121 ms
79,424 KB
testcase_21 AC 122 ms
79,728 KB
testcase_22 AC 136 ms
79,632 KB
testcase_23 AC 122 ms
79,272 KB
testcase_24 AC 121 ms
79,400 KB
testcase_25 AC 125 ms
79,740 KB
testcase_26 AC 123 ms
79,660 KB
testcase_27 AC 123 ms
79,752 KB
testcase_28 AC 122 ms
79,512 KB
testcase_29 AC 122 ms
79,904 KB
testcase_30 AC 125 ms
79,512 KB
testcase_31 AC 124 ms
79,788 KB
testcase_32 AC 128 ms
79,520 KB
testcase_33 AC 121 ms
79,632 KB
testcase_34 AC 121 ms
79,680 KB
testcase_35 AC 121 ms
79,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
write=sys.stdout.write

T=int(input())

Ans=[0]*T
for t in range(T):
    N,M,K=map(int,input().split())
    if K%M<M-N:
        Ans[t]=K%M

write("\n".join(map(str,Ans)))
0