fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <utility>
  4.  
  5. using namespace std;
  6.  
  7.  
  8. int main()
  9. {
  10. int x, y, a, b, c, d, j, m, v;
  11. vector<pair<int, int> > ladder;
  12. cin >> x >> y;
  13. for (int i = 0; i < x; i++) {
  14. cin >> a >> b;
  15. ladder.emplace_back(a, b);
  16. }
  17. vector<pair<int, int> > snake;
  18. for (int i = 0; i < y; i++) {
  19. cin >> c >> d;
  20. snake.emplace_back(c, d);
  21. }
  22. vector<int> moves;
  23. cin >> v;
  24. while (v != 0) {
  25. moves.push_back(v);
  26. v = 0;
  27. cin >> v;
  28. }
  29. return 0;
  30. }
Success #stdin #stdout 0.01s 5472KB
stdin
Standard input is empty
stdout
Standard output is empty