Advertisement
Guest User

Untitled

a guest
Dec 16th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int station=0;
  8. cin >> station;
  9. if (1>=station || station>=1000)
  10. {
  11. return 1;
  12. }
  13.  
  14. int n=0;
  15. cin >> n;
  16. if (0>n || n>100)
  17. {
  18. return 1;
  19. }
  20. int m=0;
  21. cin >> m;
  22. if (0>m || m>100000)
  23. {
  24. return 1;
  25. }
  26. int Tleszallok[n], Tfelszallok[n];
  27. for (int i=0; i<station; i++)
  28. {
  29. int l=0, f=0;
  30. cin >> l >> f;
  31. if ((0>=l || l>=800) && (0>=f || f>=800))
  32. {
  33.  
  34. return 1;
  35. }
  36. }
  37. return 0;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement