Module b

Expand description

ยงABC 345 B - Integer Division Returns

refs: https://atcoder.jp/contests/abc345/tasks/abc345_b

use proconio::input;

fn main() {
    input! {
        x: i64,
    }

    if x > 0 && x % 10 != 0 {
        println!("{}", x / 10 + 1);
    } else {
        println!("{}", x / 10);
    }
}