Submission #12633357
Source Code Expand
A,B,N = gets.split.map(&:to_i)
p [B+1,N+1].min.times.map{|x|
A*x/B - x/B*A
}.max
Submission Info
| Submission Time | |
|---|---|
| Task | D - Floor Function |
| User | ds14050 |
| Language | Ruby (2.7.1) |
| Score | 0 |
| Code Size | 86 Byte |
| Status | TLE |
| Exec Time | 2212 ms |
| Memory | 199048 KiB |
Judge Result
| Set Name | Sample | All | ||||||
|---|---|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 0 / 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 | 55 ms | 14180 KiB |
| 02.txt | AC | 51 ms | 14020 KiB |
| 11.txt | TLE | 2212 ms | 199048 KiB |
| 12.txt | TLE | 2212 ms | 198856 KiB |
| 13.txt | AC | 52 ms | 14216 KiB |
| 14.txt | TLE | 2212 ms | 198516 KiB |
| 15.txt | AC | 53 ms | 14228 KiB |
| 16.txt | AC | 53 ms | 14236 KiB |
| 17.txt | AC | 56 ms | 14228 KiB |
| 18.txt | AC | 57 ms | 14204 KiB |