Started on ABC051, finished a

This commit is contained in:
2023-05-01 17:15:01 +02:00
parent adb33aa593
commit 3abb97ae34
5 changed files with 55 additions and 0 deletions

View 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'

View 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>(),
);
}

View 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));
}

View File

@@ -0,0 +1,5 @@
use proconio::input;
fn main() {
unimplemented!();
}

View File

@@ -0,0 +1,5 @@
use proconio::input;
fn main() {
unimplemented!();
}