ABC 045, not finished yet, got idea for c
This commit is contained in:
13
atcoder/beginner_contests/abc045/src/bin/a.rs
Normal file
13
atcoder/beginner_contests/abc045/src/bin/a.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use proconio::input;
|
||||
|
||||
fn main() {
|
||||
input!{
|
||||
a: u16,
|
||||
b: u16,
|
||||
h: u16,
|
||||
};
|
||||
|
||||
let result = h * (a + b) / 2;
|
||||
|
||||
println!("{}", {result});
|
||||
}
|
||||
Reference in New Issue
Block a user