ABC 047, started on b
This commit is contained in:
15
atcoder/beginner_contests/abc047/src/bin/a.rs
Normal file
15
atcoder/beginner_contests/abc047/src/bin/a.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use proconio::input;
|
||||
|
||||
fn main() {
|
||||
input!{
|
||||
a: u32,
|
||||
b: u32,
|
||||
c: u32,
|
||||
};
|
||||
|
||||
if a + b == c || a + c == b || a == b + c {
|
||||
println!("Yes");
|
||||
} else {
|
||||
println!("No");
|
||||
}
|
||||
}
|
||||
17
atcoder/beginner_contests/abc047/src/bin/b.rs
Normal file
17
atcoder/beginner_contests/abc047/src/bin/b.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
use proconio::input;
|
||||
use std::cmp::max;
|
||||
|
||||
fn main() {
|
||||
input!{
|
||||
h: u32,
|
||||
w: u32,
|
||||
n: u32,
|
||||
lines: [(u32, u32, u32); n],
|
||||
};
|
||||
|
||||
let mut corners = ((0, 0), (w, h));
|
||||
|
||||
let result = max(0,(corners.1.0 - corners.0.0) * (corners.1.1 - corners.0.1));
|
||||
|
||||
println!("{}", {result});
|
||||
}
|
||||
5
atcoder/beginner_contests/abc047/src/bin/c.rs
Normal file
5
atcoder/beginner_contests/abc047/src/bin/c.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
use proconio::input;
|
||||
|
||||
fn main() {
|
||||
todo!();
|
||||
}
|
||||
5
atcoder/beginner_contests/abc047/src/bin/d.rs
Normal file
5
atcoder/beginner_contests/abc047/src/bin/d.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
use proconio::input;
|
||||
|
||||
fn main() {
|
||||
todo!();
|
||||
}
|
||||
Reference in New Issue
Block a user