Created
July 6, 2021 21:55
-
-
Save tokugh/78d46aa289779bf75166bbaafa107ae4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use num_integer::{Integer, Roots}; | |
fn main() { | |
proconio::input!{abc: i64}; | |
let mut cnt = 0; | |
for a in 1..=abc.cbrt() { | |
if !abc.is_multiple_of(&a) { continue; } | |
let bc = abc / a; | |
for b in a..=bc.sqrt() { | |
if !bc.is_multiple_of(&b) { continue; } | |
let c = bc / b; | |
cnt += 1; | |
} | |
} | |
println!("{}", cnt); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment