Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <iostream>
- int main(){
- int k;
- scanf("%d", &k);
- while (k != 0){
- int d1, d2;
- scanf("%d %d", &d1, &d2);
- for(int i = 0; i<k; i++){
- int c1, c2;
- scanf("%d %d", &c1, &c2);
- if (c1 == d1 || c2 == d2){
- printf("divisa\n");
- }else if (c1 < d1 && c2 > d2){
- printf("NO\n");
- }else if (c1 > d1 && c2 > d2){
- printf("NE\n");
- }else if (c1 < d1 && c2 < d2){
- printf("SO\n");
- }else if (c1 > d1 && c2 < d2){
- printf("SE\n");
- }
- }
- scanf("%d", &k);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement