diff options
Diffstat (limited to '11498/ngolia.cpp')
| -rwxr-xr-x | 11498/ngolia.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/11498/ngolia.cpp b/11498/ngolia.cpp new file mode 100755 index 0000000..a744b42 --- /dev/null +++ b/11498/ngolia.cpp @@ -0,0 +1,27 @@ +#include <iostream>
+using namespace std;
+
+int main(){
+ int inct;
+ int origx, origy;
+ int x, y;
+ cin>>inct;
+ while(inct!=0)
+ {
+ int loccnt=0;
+ cin>>origx>>origy;
+ while(loccnt<inct)
+ {
+ cin>>x>>y;
+ x-=origx;y-=origy;
+ if(x==0 || y==0) cout<<"divisa"<<endl;
+ else if(x>0 && y>0) cout<<"NE"<<endl;
+ else if(x>0 && y<0) cout<<"SE"<<endl;
+ else if(x<0 && y>0) cout<<"NO"<<endl;
+ else if(x<0 && y<0) cout<<"SO"<<endl;
+ loccnt++;
+ }
+ cin>>inct;
+ }
+ return 0;
+}
|
