1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| #include<stdio.h>int main(){float a,b; while(scanf("%f %f",&a,&b)==2){ if(a==0 && b==0) printf("Origem\n"); else if(b==0) printf("Eixo X\n"); else if(a==0) printf("Eixo Y\n"); else if(a>0 && b>0) printf("Q1\n"); else if(a<0 && b>0) printf("Q2\n"); else if(a<0 && b<0) printf("Q3\n"); else printf("Q4\n"); } return 0;} |
Thursday, January 28, 2016
URI 1041 - Coordinates of a Point
Labels:
URI Solution
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thank you for commenting. Please wait for response :)