in contests/arc008/arc008_1.rs [16:39]
fn solve(src: &str) -> String {
let source = AutoSource::from(src);
input! {
from source,
mut N: usize,
}
let mut need_money = 0;
let tako_set = N / 10;
if tako_set >= 1 {
need_money = tako_set * 100;
N -= tako_set * 10;
}
if N % 10 >= 7 {
need_money += 100;
} else {
need_money += N * 15;
}
format!("{}", need_money)
}