Submission #29809856
Source Code Expand
use proconio::input;
fn main() {
input! {
h: usize,
w: usize,
};
let ans = if h == 1 || w == 1 { 1 } else { (h * w + 1) / 2 };
println!("{}", ans);
}
Submission Info
| Submission Time | |
|---|---|
| Task | 065 - Bishop |
| User | bouzuya |
| Language | Rust (1.42.0) |
| Score | 200 |
| Code Size | 183 Byte |
| Status | AC |
| Exec Time | 4 ms |
| Memory | 2076 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt, example2.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, example0.txt, example1.txt, example2.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 4 ms | 2044 KiB |
| 001.txt | AC | 1 ms | 1964 KiB |
| 002.txt | AC | 2 ms | 2012 KiB |
| 003.txt | AC | 2 ms | 2056 KiB |
| 004.txt | AC | 3 ms | 1968 KiB |
| 005.txt | AC | 2 ms | 1992 KiB |
| 006.txt | AC | 1 ms | 1980 KiB |
| example0.txt | AC | 2 ms | 1980 KiB |
| example1.txt | AC | 2 ms | 2076 KiB |
| example2.txt | AC | 2 ms | 1936 KiB |