SHARE
TWEET

Untitled

a guest Jun 25th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for(int i = n; i >= 0 --i)
  2. {
  3.     for(int j = m; j >= 0; --j)
  4.     {
  5.         if(F[i][j] == 0)
  6.         {
  7.             F[i][j] = 2;
  8.             int i_1 = i - 1;
  9.             int j_1 = j - 1;
  10.             while(i_1 > 0)
  11.             {
  12.                 F[i_1][j] = 1;
  13.                 i_1--;
  14.             }
  15.             while(j_1 > 0)
  16.             {
  17.                 F[i][j_1] = 1;
  18.                 j_1--;
  19.             }
  20.             i_1 = i - 1
  21.             j_1 = j - 1
  22.             while(j_1 > 0 && i_1 > 0)
  23.             {
  24.                 F[i_1][j_1] = 1;
  25.                 j_1--;
  26.                 i_1--;
  27.             }
  28.         }
  29.     }
  30. }
  31. F[1][1]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top