mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
17 lines
338 B
Python
17 lines
338 B
Python
def problem_p02696(input_data):
|
|
import sys
|
|
from sys import stdin
|
|
|
|
A, B, N = [int(x) for x in stdin.readline().rstrip().split()]
|
|
|
|
# N, M = [int(x) for x in stdin.readline().rstrip().split()]
|
|
|
|
# U = input_data.split()
|
|
|
|
x = min(B - 1, N)
|
|
|
|
ans = int((A * x) / B) - A * int(x / B)
|
|
|
|
return ans
|
|
|
|
# if N >= B:
|