Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int station=0;
- cin >> station;
- if (1>=station || station>=1000)
- {
- return 1;
- }
- int n=0;
- cin >> n;
- if (0>n || n>100)
- {
- return 1;
- }
- int m=0;
- cin >> m;
- if (0>m || m>100000)
- {
- return 1;
- }
- int Tleszallok[n], Tfelszallok[n];
- for (int i=0; i<station; i++)
- {
- int l=0, f=0;
- cin >> l >> f;
- if ((0>=l || l>=800) && (0>=f || f>=800))
- {
- return 1;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement