package rectcover;
/**
* Created by Administrator on 2017/1/15.
*/publicclassRectCover {publicstaticvoidmain(String[] args)
{
int n = 3;
System.out.println(Solution.RectCover(n));
}
}
class Solution
{
publicstaticintRectCover(int target)
{
if(target == 1 || target == 2) return1;
int x = 1;
int y = 1;
while(target-->2){
y = x + y;
x = y - x;
}
return y;
}
}