Advertisement
Dzham

dolboeb

Dec 14th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8. int N;
  9. string line, M;
  10. getline(cin, M);
  11. N = stoi(M);
  12. vector<string> v;
  13. vector<int> result;
  14. for (int i = 0; i < N; i++) {
  15. getline(cin, line);
  16. v.push_back(line);
  17. }
  18. for (int i = 0; i < N; i++) {
  19. getline(cin, line);
  20. if (line != v[i]) {
  21. result.push_back(i);
  22. }
  23. }
  24. for (int i : result) {
  25. cout << i << '\n';
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement