public class Solution {
public int rectCover(int target) {
if (target<=2){
return target;
}
int pre1=2;
int pre2=1;
for(int i=3;i<=target;i++){
int cur=pre1+pre2;
pre2=pre1;
pre1=cur;
}
return pre1;
}
}