记录编号 137501 评测结果 AAAAAAAAAA
题目名称 跳马问题 最终得分 100
用户昵称 GravatarRainboy 是否通过 通过
代码语言 C 运行时间 0.002 s
提交时间 2014-11-04 20:47:49 内存使用 0.29 MiB
显示代码纯文本
#include <stdio.h>

int ans[20][20]={
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,3,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,3,4,3,2,3,4,0,0,1,0,0,0,0,0,0,0,0,0,0,1,3,3,10,10,6,3,4,5,0,0,1,0,0,0,0,0,0,0,0,0,5,12,15,12,20,18,10,4,5,6,0,0,1,0,0,0,0,0,0,0,7,16,37,46,38,26,33,28,15,5,6,7,0,0,1,0,0,0,0,0,13,40,65,74,100,104,75,46,49,40,21,6,7,8,0,0,1,0,0,1,19,56,150,211,212,191,203,192,129,73,68,54,28,7,8,9,0,0,0,0,29,122,291,388,530,578,491,388,357,316,203,108,90,70,36,8,9,10,0,0,43,197,634,980,1175,1187,1270,1226,959,693,574,482,300,152,115,88,45,9,0,0,69,408,1258,1954,2821,3216,3100,2728,2548,2268,1683,1138,867,696,423,206,143,108,0,1,107,695,2654,4655,6377,7082,7781,7713,6702,5399,4590,3838,2740,1759,1250,964,575,271,0,0,165,1352,5375,9732,15020,18114,19007,18124,17367,15782,12848,9708,7674,6092,4217,2596,1738,1292,0,0,251,2368,11235,22391,34318,41380,47101,48365,44967,39124,34278,29204,22662,16294,12135,9209,6211,3693,0,0,389,4512,22984,47928,80133,102592,115212,116806,115284,107784,93119,75940,62213,50304,37561,25942,18370,13392,0,1,603,8096,47701,108183,184249,239156,283827,302132,295795,271985,245825,215028,176178,136679,106086,82042,59292,39598,0,0,933,15202,97937,234796,428347,583068,694622,740368,754121,725546,655697,563996,478155,396844,311716,232208,172263,128110
};

int main()
{
	freopen("horse.in","r",stdin);
	freopen("horse.out","w",stdout);
	int i,j;
	scanf("%d%d",&i,&j);
	printf("%d",ans[j-1][i-1]);
	return 0;
}