Submission #45312553
Source Code Expand
#include <iostream> using namespace std; typedef long long ll; int main(void) { ll a = 0, b = 0, n = 0; cin >> a >> b >> n; cout << (a * min(n, b - 1)) / b << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | D - Floor Function |
User | coolwind0202 |
Language | C++ 20 (gcc 12.2) |
Score | 400 |
Code Size | 199 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3528 KiB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 400 / 400 | ||||
Status |
|
|
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 | 1 ms | 3472 KiB |
02.txt | AC | 1 ms | 3460 KiB |
11.txt | AC | 1 ms | 3464 KiB |
12.txt | AC | 1 ms | 3424 KiB |
13.txt | AC | 1 ms | 3528 KiB |
14.txt | AC | 1 ms | 3468 KiB |
15.txt | AC | 1 ms | 3432 KiB |
16.txt | AC | 1 ms | 3464 KiB |
17.txt | AC | 1 ms | 3468 KiB |
18.txt | AC | 1 ms | 3460 KiB |