ABC 046, wip on c and d

This commit is contained in:
2022-06-02 13:30:39 +02:00
parent 75fb792115
commit fda6666069
6 changed files with 98 additions and 0 deletions

View 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});
}