よじろめ覚書

私の理解度重視のソースコードです。

2019-07-31から1日間の記事一覧

ABC046B - AtCoDeerくんとボール色塗り / Painting Balls with AtCoDeer

ABC

問題:B - AtCoDeerくんとボール色塗り / Painting Balls with AtCoDeer #include <cmath> #include <iostream> using namespace std; int main(void) { int n, k; cin.tie(0); ios::sync_with_stdio(false); cin >> n >> k; cout << k * (int)pow((k - 1), (n - 1)) << "\n";</iostream></cmath>…