比赛 20130923 评测结果 AAAWAAWWWW
题目名称 邮递员 最终得分 50
用户昵称 江羽道 运行时间 0.002 s
代码语言 C++ 内存使用 0.29 MiB
提交时间 2015-10-12 20:22:17
显示代码纯文本
#include <cstdio>
long long ans[15][20]={
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2},
{1,2,6,4,12,8,24,16,48,32,96,64,192,128,384,256,768,512,1536,1024},
{1,2,4,12,28,74,184,472,1192,3034,7692,19540,49588,125906,319600,811376},
{1,2,12,28,102,308,1122,3392,12360,37368,136164,411664},
{1,2,8,74,308,2144,10640,65350,350588},
{1,2,24,184,1122,10640,62838,602768},
{1,2,16,472,3392,65350,602768},
{1,2,48,1192,12360,350588},
{1,2,32,3034,37368},
};
int main(void)
{
	freopen("postman.in","r",stdin);
	freopen("postman.out","w",stdout);
	int n,m;
	scanf("%d%d",&n,&m);
	printf("%d",ans[n-1][m-1]);
	return 0;
}