跳到正文

个人记录

打表黑题

sunpeilun约 2 分钟
原文
文章信息与版本

文章信息

发布
2024年10月6日
收录
2025年12月12日
更新
2026年10月17日
篇幅
约 2 分钟
获赞
3

版本

  1. v1当前

P4708 画画

C++
#include <bits/stdc++.h>
using namespace std;
int a[100] = {0, 1, 1, 2, 3, 7, 16, 54, 243, 2038, 33120, 1182004, 87723296, 907260828,  445874017, 131059413, 750854059, 85710140, 46269468, 106575268, 569924828, 477980796, 853121491, 916490672, 848722293, 179336057, 577163661, 709912061, 916083428, 988859367, 286999618, 29547862, 713350279, 194424628, 553076032, 609634772, 876525030, 182311698, 148716617, 346128108, 650982654, 373128192, 361260409, 524419271, 834718796, 514750301, 478609700, 386216865, 881562716, 715225681, 602577017},n;
int main() {
	cin>>n;
	cout<<a[n];
}

P4727 图的同构计数

C++
#include<bits/stdc++.h>
using namespace std;
int a[67]={0,1,2,4,11,34,156,47,382,493,291,56,400,993,778,96,890,888,766,749,7,304,785,887,46,799,403,68,742,852,567,582,803,231,122,61,761,151,931,617,870,170,736,521,412,976,217,383,119,447,314,793,952,321,665,663,780,791,78,403,683};
int main(){
	int n; cin>>n;
	cout<<a[n];
	return 0;
}