当前位置: 代码迷 >> 综合 >> CF1594E1 Rubik‘s Cube Coloring (easy version)
  详细解决方案

CF1594E1 Rubik‘s Cube Coloring (easy version)

热度:93   发布时间:2023-10-14 01:16:12.0

又是没弄懂的一题

#include<bits/stdc++.h> 
#define int long long
using namespace std;const int mod = 1e9 + 7;
signed main()
{
    int n; cin >> n;int f[100005];f[1] = 16;for (int i = 2; i <= n + 1; i ++ ){
    f[i] =  (f[i - 1] * f[i - 1]) % mod * 16 % mod;}f[0] = 1;cout << f[n - 1] * 6 % mod<< endl;return 0;
}

CF1594E1 Rubik‘s Cube Coloring (easy version)

  相关解决方案