ABC 046, wip on c and d
This commit is contained in:
12
atcoder/beginner_contests/abc046/src/bin/b.rs
Normal file
12
atcoder/beginner_contests/abc046/src/bin/b.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use proconio::input;
|
||||
|
||||
fn main(){
|
||||
input!{
|
||||
n: u32,
|
||||
k: u32,
|
||||
};
|
||||
|
||||
let result = k * u32::pow(k - 1, n - 1);
|
||||
|
||||
println!("{}", {result});
|
||||
}
|
||||
Reference in New Issue
Block a user