Started on ABC051, finished a
This commit is contained in:
12
atcoder/beginner_contests/abc051/Cargo.toml
Normal file
12
atcoder/beginner_contests/abc051/Cargo.toml
Normal file
@@ -0,0 +1,12 @@
|
||||
[package]
|
||||
name = "abc051"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# dependencies added to new project
|
||||
[dependencies]
|
||||
proconio = "*"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
panic = 'abort'
|
||||
14
atcoder/beginner_contests/abc051/src/bin/a.rs
Normal file
14
atcoder/beginner_contests/abc051/src/bin/a.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
use proconio::{input, marker::Chars};
|
||||
|
||||
fn main() {
|
||||
input! {
|
||||
s: Chars,
|
||||
};
|
||||
|
||||
println!(
|
||||
"{} {} {}",
|
||||
&s[..5].iter().collect::<String>(),
|
||||
&s[6..13].iter().collect::<String>(),
|
||||
&s[14..].iter().collect::<String>(),
|
||||
);
|
||||
}
|
||||
19
atcoder/beginner_contests/abc051/src/bin/b.rs
Normal file
19
atcoder/beginner_contests/abc051/src/bin/b.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
use proconio::input;
|
||||
|
||||
fn solve(k: u32, s: u32) -> u32 {
|
||||
let mut result = 0;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
input! {
|
||||
k: u32,
|
||||
s: u32,
|
||||
};
|
||||
|
||||
assert!(s <= 3 * k);
|
||||
|
||||
println!("{}", solve(k, s));
|
||||
|
||||
}
|
||||
5
atcoder/beginner_contests/abc051/src/bin/c.rs
Normal file
5
atcoder/beginner_contests/abc051/src/bin/c.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
use proconio::input;
|
||||
|
||||
fn main() {
|
||||
unimplemented!();
|
||||
}
|
||||
5
atcoder/beginner_contests/abc051/src/bin/d.rs
Normal file
5
atcoder/beginner_contests/abc051/src/bin/d.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
use proconio::input;
|
||||
|
||||
fn main() {
|
||||
unimplemented!();
|
||||
}
|
||||
Reference in New Issue
Block a user