Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.13 KB | None | 0 0
  1. /******************************************************************************
  2.  
  3.                               Online C++ Compiler.
  4.                Code, Compile, Run and Debug C++ program online.
  5. Write your code in this editor and press "Run" button to compile and execute it.
  6.  
  7. *******************************************************************************/
  8.  
  9. #include <iostream>
  10.  
  11. using namespace std;
  12.  
  13. main ()
  14. {
  15.   int n_ele, lim1, lim2, lim3, X[400];
  16.   cin >> n_ele;
  17.   int s_pieni = n_ele / (lim2 * lim3);
  18.   int i_pieni = (n_ele % (lim2 * lim3)) / lim3;
  19.   int j_pieni = (n_ele % (lim2 * lim3)) % lim3;
  20.   for (int i = 0; i < n_ele; i++)
  21.     {
  22.       cin >> X[i];
  23.     }
  24.   int strati_da_stampare = s_pieni + 1;
  25.   if (s_pieni * (lim2 * lim3) == n_ele)
  26.     {
  27.       strati_da_stampare--;
  28.     }
  29.   for (int s = 0; s < strati_da_stampare; s++)
  30.     {
  31.       cout << " strato " << s << endl;
  32.       for (int i = 0; i < lim2; i++)
  33.     {
  34.          cout << 'r' << i <<':';
  35.       for (int j = 0; j < lim3; j++)
  36.         {
  37.         }
  38.     }
  39.     }
  40.         cin >> lim1 >> lim2 >> lim3;
  41.       cout << "start" << endl;
  42.       //da fare
  43.       cout << "end" << endl;
  44.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement