Skip to content

Commit

Permalink
2020.04.26
Browse files Browse the repository at this point in the history
14681 사분면 고르기
  • Loading branch information
witheunjin committed Apr 26, 2020
1 parent 37203d6 commit 3091668
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions BaekJoon/14681_사분면고르기.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <iostream>
using namespace std;

int quadrant(int x, int y) {
if(x>0 && y>0) return 1;
if(x<0 && y>0) return 2;
if(x<0 && y<0) return 3;
return 4;
}

int main() {
int x; cin>>x;
int y; cin>>y;
cout<<quadrant(x,y);
return 0;
}
2 changes: 1 addition & 1 deletion BaekJoon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ https://www.acmicpc.net/
|**2750**|**수 정렬하기**|2020.04.26|1|
|**2798**|**블랙잭**|2020.04.26|1|
|**1330**|**두 수 비교하기**|2020.04.26|1|
|****|****|||
|**14681**|**사분면 고르기**|2020.04.26|1|
|****|****|||
|****|****|||
|****|****|||
Expand Down

0 comments on commit 3091668

Please sign in to comment.