Submission #16974316
Source Code Expand
use proconio::input;
fn main() {
input! {
h: usize,
w: usize,
n: usize,
};
let u = std::cmp::max(h, w);
let ans = (n + u - 1) / u;
println!("{}", ans);
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Painting |
| User | bouzuya |
| Language | Rust (1.42.0) |
| Score | 100 |
| Code Size | 199 Byte |
| Status | AC |
| Exec Time | 6 ms |
| Memory | 2068 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample-01.txt, sample-02.txt, sample-03.txt |
| All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, sample-01.txt, sample-02.txt, sample-03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01.txt | AC | 6 ms | 2008 KiB |
| 02.txt | AC | 2 ms | 1980 KiB |
| 03.txt | AC | 2 ms | 2032 KiB |
| 04.txt | AC | 1 ms | 2068 KiB |
| 05.txt | AC | 2 ms | 1928 KiB |
| 06.txt | AC | 4 ms | 1988 KiB |
| 07.txt | AC | 1 ms | 2032 KiB |
| sample-01.txt | AC | 2 ms | 2032 KiB |
| sample-02.txt | AC | 1 ms | 2008 KiB |
| sample-03.txt | AC | 1 ms | 2032 KiB |