アルゴリズムと数学 001

https://atcoder.jp/contests/math-and-algorithm/tasks/math_and_algorithm_a

これから、アルゴリズムと数学 演習問題集を解いていきます。

https://atcoder.jp/contests/math-and-algorithm

// Print 5+N
#![allow(non_snake_case)]


//////////////////// library ////////////////////

fn read<T: std::str::FromStr>() -> T {
    let mut line = String::new();
    std::io::stdin().read_line(&mut line).ok();
    line.trim().parse().ok().unwrap()
}


//////////////////// process ////////////////////

fn f(N: i32) -> i32 {
    5 + N
}

fn main() {
    let N: i32 = read();
    println!("{}", f(N))
}