| 比赛 | 20150421 | 评测结果 | AWWWWWWWWW |
|---|---|---|---|
| 题目名称 | 走道铺砖问题 | 最终得分 | 10 |
| 用户昵称 | Satoshi | 运行时间 | 0.010 s |
| 代码语言 | C++ | 内存使用 | 0.31 MiB |
| 提交时间 | 2015-04-21 11:36:00 | ||
#include <fstream>
#include <string>
using namespace std;
ifstream in("floor.in");
ofstream out("floor.out");
//我打表你揍我啊
int m,n;
int biao[4][4]={0,1,0,1,1,2,3,5,0,3,0,11,1,5,11,25};
int main()
{
int i,j,k,t;
in>>m>>n;
if(m<n)
{
t=m;
m=n;
n=t;
}
if(n==1)out<<1<<endl;
else
{
if(n>=5||m>=5)return 0;
m-=1;
n-=1;
out<<biao[m][n]<<endl;
}
return 0;
}