結果

問題 No.1926 Sequence of Remainders
ユーザー titan23titan23
提出日時 2022-06-24 09:58:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 78,664 KB
最終ジャッジ日時 2024-04-25 15:39:50
合計ジャッジ時間 7,914 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,356 KB
testcase_01 AC 78 ms
77,116 KB
testcase_02 AC 78 ms
77,200 KB
testcase_03 AC 74 ms
77,084 KB
testcase_04 AC 77 ms
77,116 KB
testcase_05 AC 78 ms
77,044 KB
testcase_06 AC 94 ms
78,204 KB
testcase_07 AC 91 ms
78,316 KB
testcase_08 AC 92 ms
78,220 KB
testcase_09 AC 91 ms
78,456 KB
testcase_10 AC 90 ms
78,236 KB
testcase_11 AC 91 ms
78,304 KB
testcase_12 AC 92 ms
78,484 KB
testcase_13 AC 92 ms
78,112 KB
testcase_14 AC 93 ms
78,356 KB
testcase_15 AC 89 ms
78,548 KB
testcase_16 AC 92 ms
78,168 KB
testcase_17 AC 92 ms
78,264 KB
testcase_18 AC 93 ms
78,196 KB
testcase_19 AC 92 ms
78,164 KB
testcase_20 AC 91 ms
78,536 KB
testcase_21 AC 93 ms
78,072 KB
testcase_22 AC 90 ms
78,076 KB
testcase_23 AC 90 ms
78,128 KB
testcase_24 AC 93 ms
78,456 KB
testcase_25 AC 92 ms
77,824 KB
testcase_26 AC 92 ms
78,316 KB
testcase_27 AC 94 ms
78,436 KB
testcase_28 AC 91 ms
78,604 KB
testcase_29 AC 92 ms
78,308 KB
testcase_30 AC 92 ms
78,392 KB
testcase_31 AC 93 ms
78,420 KB
testcase_32 AC 91 ms
78,472 KB
testcase_33 AC 92 ms
78,664 KB
testcase_34 AC 94 ms
78,212 KB
testcase_35 AC 94 ms
78,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()

#  -----------------------  #

def main():
  n, m, k = map(int, input().split())
  return k%m if k%m < m-n else 0

print('\n'.join(map(str, [main() for _ in range(int(input()))])))
0