-
[백준] 2753번 : 윤년[JAVA]Algorithm/백준[JAVA] 2023. 2. 12. 18:33
# 문제
# 접근방식
- 조건문(if문)과 논리,비교연산을 이용한다.
- 4의 배수 : 4로 나누었을 때 나머지는 0
- 100의 배수가 아님 : 100으로 나누었을 때 나머지가 0이 아님
- 400의 배수 : 400으로 나누었을 때 나머지는 0
- 논리연산자 : &&(AND), ||(OR)
# 소스코드
# 성능
'Algorithm > 백준[JAVA]' 카테고리의 다른 글
[백준] 2083번 : 럭비 클럽 [JAVA] (0) 2024.05.05 [백준] 1264번 : 모음의 개수[JAVA] (0) 2024.05.04 [백준] 9498번 : 시험 성적[JAVA] (0) 2023.02.12 [백준] 1330번 : 두 수 비교하기[JAVA] (0) 2023.02.12 [백준] 10171번 : 고양이[JAVA] (0) 2023.02.12