Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <vector>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. fstream file;
  10.  
  11. file.open("flow00.in");
  12.  
  13. int tasks;
  14. file >> tasks;
  15.  
  16. for (int i = 0; i < tasks; ++i)
  17. {
  18. int sizeX, sizeY, minWins, mod;
  19. vector<vector<char>> matrix;
  20.  
  21. file >> sizeX;
  22. file >> sizeY;
  23. file >> minWins;
  24. file >> mod;
  25. for (int x = 0; x < sizeX; ++x)
  26. {
  27. matrix.push_back(vector<char>());
  28. for (int y = 0; y < sizeY; ++y)
  29. {
  30. char temp;
  31. file >> temp;
  32. matrix[x].push_back(temp);
  33. }
  34. }
  35.  
  36. }
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement