Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int k,n,m,x,y;
- while (k!=0){
- cin >> k;
- if (k==0){
- return 0;
- }
- cin >> n >> m;
- for (int i=0; i<k; i++){
- cin >> x >> y;
- if (y>m&&x>n){
- cout << "NE" << endl;
- }
- else if (y>m&&x<n){
- cout << "NO" << endl;
- }
- else if (y<m&&x>n){
- cout << "SE" << endl;
- }
- else if (y<m&&x<n){
- cout << "SO" << endl;
- }
- else {
- cout << "divisa" << endl;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement