其他分享
首页 > 其他分享> > CF1594E1 Rubik‘s Cube Coloring (easy version)

CF1594E1 Rubik‘s Cube Coloring (easy version)

作者:互联网

又是没弄懂的一题

#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;
}

在这里插入图片描述

标签:Cube,cout,16,int,long,version,Rubik,Coloring,mod
来源: https://blog.csdn.net/qq_34682765/article/details/121060715