Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 5073번
- javascript
- 백준 27433번
- 일상생활 영어표현
- 백준 2587번
- 백준 #11382번 #
- 백준 5086번
- Java
- C++
- 백준 5597번
- 배열
- 알고리즘
- 직각 삼각형
- 백준 1157번
- 상세 풀이
- 피라미드 출력
- 백준 9506번
- 해석
- C
- 백준 2525번
- 연속된 숫자의 합
- 백준 25305번
- 대칭 차집합
- 백준 1269번
- 잡다한 일
- 논리 연산
- 백준 2501번
- Unity
- 차이
- html
Archives
- Today
- Total
목록코드는 Java! (1)
YunDev
백준 프로그램 14681번 (JAVA)
코드 package baekjoon; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); int result = 0; if (x > 0 && y > 0) { result = 1; } else if (x 0) { result = 2; } else if (x 0 && y < 0) { result = 4; } System.out.println(result); } }
Programming/Baekjoon Program
2020. 5. 7. 20:46