結果

問題 No.1926 Sequence of Remainders
ユーザー siganaisiganai
提出日時 2022-05-06 22:32:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 232 ms / 2,000 ms
コード長 401 bytes
コンパイル時間 923 ms
コンパイル使用メモリ 87,164 KB
実行使用メモリ 81,836 KB
最終ジャッジ日時 2023-09-20 03:35:30
合計ジャッジ時間 12,419 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 157 ms
78,820 KB
testcase_01 AC 211 ms
81,068 KB
testcase_02 AC 211 ms
81,068 KB
testcase_03 AC 231 ms
81,836 KB
testcase_04 AC 228 ms
80,996 KB
testcase_05 AC 232 ms
81,008 KB
testcase_06 AC 222 ms
80,960 KB
testcase_07 AC 221 ms
80,740 KB
testcase_08 AC 224 ms
80,900 KB
testcase_09 AC 227 ms
81,108 KB
testcase_10 AC 223 ms
80,860 KB
testcase_11 AC 226 ms
80,848 KB
testcase_12 AC 227 ms
80,908 KB
testcase_13 AC 224 ms
80,952 KB
testcase_14 AC 224 ms
80,900 KB
testcase_15 AC 219 ms
81,044 KB
testcase_16 AC 225 ms
80,796 KB
testcase_17 AC 224 ms
80,720 KB
testcase_18 AC 221 ms
80,912 KB
testcase_19 AC 223 ms
80,856 KB
testcase_20 AC 227 ms
80,800 KB
testcase_21 AC 227 ms
80,952 KB
testcase_22 AC 226 ms
80,960 KB
testcase_23 AC 225 ms
80,724 KB
testcase_24 AC 224 ms
80,896 KB
testcase_25 AC 226 ms
80,820 KB
testcase_26 AC 223 ms
80,856 KB
testcase_27 AC 221 ms
80,672 KB
testcase_28 AC 228 ms
80,876 KB
testcase_29 AC 224 ms
81,032 KB
testcase_30 AC 220 ms
80,764 KB
testcase_31 AC 221 ms
81,024 KB
testcase_32 AC 226 ms
80,912 KB
testcase_33 AC 224 ms
80,964 KB
testcase_34 AC 225 ms
80,872 KB
testcase_35 AC 224 ms
80,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env PyPy3

from collections import Counter, defaultdict, deque
import itertools
import re
import math
from functools import reduce
import operator
import bisect
from heapq import *
import functools
mod=998244353

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