diff --git a/QUSTOJ/1012.pas b/QUSTOJ/1012.pas new file mode 100644 index 0000000..d80c6dc --- /dev/null +++ b/QUSTOJ/1012.pas @@ -0,0 +1,30 @@ +uses math; +var map,dp:array[0..500,0..500] of longint; + r,c,i,j,ans:longint; + +function search(x,y:longint):longint; +var res:longint; +begin + res:=1; + if dp[x,y]<>0 then exit(dp[x,y]); + if (x>1) and (map[x-1,y]1) and (map[x,y-1]