結果

問題 No.1926 Sequence of Remainders
ユーザー titan23titan23
提出日時 2022-06-24 10:01:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 82,460 KB
実行使用メモリ 78,048 KB
最終ジャッジ日時 2024-04-25 15:40:14
合計ジャッジ時間 6,925 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,160 KB
testcase_01 AC 83 ms
76,632 KB
testcase_02 AC 85 ms
76,448 KB
testcase_03 AC 83 ms
76,576 KB
testcase_04 AC 85 ms
76,720 KB
testcase_05 AC 82 ms
76,512 KB
testcase_06 AC 96 ms
78,048 KB
testcase_07 AC 98 ms
77,756 KB
testcase_08 AC 101 ms
77,608 KB
testcase_09 AC 99 ms
77,632 KB
testcase_10 AC 102 ms
77,740 KB
testcase_11 AC 101 ms
77,632 KB
testcase_12 AC 98 ms
77,868 KB
testcase_13 AC 99 ms
77,996 KB
testcase_14 AC 96 ms
77,588 KB
testcase_15 AC 98 ms
77,640 KB
testcase_16 AC 98 ms
77,616 KB
testcase_17 AC 99 ms
77,660 KB
testcase_18 AC 104 ms
77,572 KB
testcase_19 AC 100 ms
77,976 KB
testcase_20 AC 97 ms
77,728 KB
testcase_21 AC 97 ms
77,592 KB
testcase_22 AC 96 ms
77,636 KB
testcase_23 AC 100 ms
77,552 KB
testcase_24 AC 100 ms
77,460 KB
testcase_25 AC 99 ms
77,592 KB
testcase_26 AC 102 ms
77,844 KB
testcase_27 AC 98 ms
77,876 KB
testcase_28 AC 101 ms
77,860 KB
testcase_29 AC 97 ms
77,832 KB
testcase_30 AC 97 ms
77,884 KB
testcase_31 AC 98 ms
77,780 KB
testcase_32 AC 100 ms
77,948 KB
testcase_33 AC 105 ms
77,780 KB
testcase_34 AC 100 ms
77,848 KB
testcase_35 AC 102 ms
77,760 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(str(main()) for _ in range(int(input()))))
0