Module b
Expand description
ยงABC 387 B - 9x9 Sum
refs: https://atcoder.jp/contests/abc387/tasks/abc387_b
use proconio::input;
fn main() {
input! {
x: usize,
}
let mut ans = 0;
for i in 1..=9 {
for j in 1..=9 {
if i * j != x {
ans += i * j;
}
}
}
println!("{ans}");
}