Skip to content

Commit 5305b9e

Browse files
committed
1 parent 0c1ae07 commit 5305b9e

32 files changed

Lines changed: 716 additions & 1 deletion

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target
2+
Cargo.lock
3+
generated
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[package]
2+
name = "olymp"
3+
version = "0.1.0"
4+
authors = ["ilya sheprut <optozorax@gmail.com>"]
5+
edition = "2018"
6+
7+
[dependencies]
8+
rand = "0.7.3"
9+
color-backtrace = "0.5.0"
10+
fastio = { path = "../../../fastio/" }
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
unstable_features = true
2+
max_width = 120
3+
array_width = 100
4+
attr_fn_like_width = 100
5+
fn_call_width = 100
6+
edition = "2018"
7+
fn_single_line = true
8+
hard_tabs = true
9+
match_block_trailing_comma = true
10+
merge_imports = true
11+
newline_style = "Unix"
12+
overflow_delimited_expr = true
13+
reorder_impl_items = true
14+
reorder_imports = true
15+
group_imports = "StdExternalCrate"
16+
required_version = "2.0.0-rc.2"
17+
single_line_if_else_max_width = 100
18+
struct_lit_width = 100
19+
use_field_init_shorthand = true
20+
where_single_line = true
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#[fastio::fastio]
2+
pub fn main() {
3+
let t = read!(usize);
4+
let p = read!(usize);
5+
let n = read!(usize);
6+
println!("{}", t * n + p * (n - 1));
7+
}
8+
9+
//----------------------------------------------------------------------------
10+
// \/ \/ \/ \/ \/ \/ \/ \/ \/ PRE-WRITTEN CODE \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
11+
// Source: https://github.com/optozorax/olymp/tree/master/templates ----------
12+
//----------------------------------------------------------------------------
13+
14+
include!("../../../../templates/src/to_include/imports.rs");
15+
include!("../../../../templates/src/to_include/scanner.rs");
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#[fastio::fastio]
2+
pub fn main() {
3+
let a = read!(u64);
4+
let b = read!(u64);
5+
println!("{}", a * b / (b - a));
6+
}
7+
8+
//----------------------------------------------------------------------------
9+
// \/ \/ \/ \/ \/ \/ \/ \/ \/ PRE-WRITTEN CODE \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
10+
// Source: https://github.com/optozorax/olymp/tree/master/templates ----------
11+
//----------------------------------------------------------------------------
12+
13+
include!("../../../../templates/src/to_include/imports.rs");
14+
include!("../../../../templates/src/to_include/scanner.rs");
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pub fn main() {
2+
color_backtrace::install();
3+
olymp::a::main();
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pub fn main() {
2+
color_backtrace::install();
3+
olymp::b::main();
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pub fn main() {
2+
color_backtrace::install();
3+
olymp::c::main();
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pub fn main() {
2+
color_backtrace::install();
3+
olymp::d::main();
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pub fn main() {
2+
color_backtrace::install();
3+
olymp::e::main();
4+
}

0 commit comments

Comments
 (0)