Submission #12602102


Source Code Expand

Copy
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

A,B,N = map(int, read().split())
x = min(N, B-1)
print(A * x // B)

Submission Info

Submission Time
Task D - Floor Function
User maspy
Language Python (3.8.2)
Score 400
Code Size 192 Byte
Status AC
Exec Time 22 ms
Memory 9168 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 400 / 400
Status
AC × 2
AC × 10
Set Name Test Cases
Sample 01.txt, 02.txt
All 01.txt, 02.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt
Case Name Status Exec Time Memory
01.txt AC 16 ms 8972 KB
02.txt AC 16 ms 9040 KB
11.txt AC 18 ms 9168 KB
12.txt AC 20 ms 8972 KB
13.txt AC 18 ms 9096 KB
14.txt AC 22 ms 8876 KB
15.txt AC 17 ms 8860 KB
16.txt AC 19 ms 9032 KB
17.txt AC 19 ms 8876 KB
18.txt AC 16 ms 9032 KB