| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 30 |
Tags
- 백준
- Git
- appium
- Katalon
- JIRA
- CI
- 테스트자동화
- ci/cd
- github
- QA
- 테스트
- 개발
- CD
- 지라
- testautomation
- openssl
- 앱테스트자동화
- sqa
- 카탈론스튜디오
- CA
- katalonstudio
- 공동인증서
- 보안
- 카탈론
- 테스트케이스
- PKI
- jenkins
- java
- 인증서
- 자동화테스트
Archives
- Today
- Total
흔한 QA 엔지니어
[백준] 2480번 : 주사위 세개 - JAVA 본문
https://www.acmicpc.net/problem/2480
가장 특수한 케이스부터 순서대로 작성합니다!
import java.util.*;
class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
int z = sc.nextInt();
if(x == y && y == z && x == z) {
System.out.println(10000 + x * 1000);
} else if(x == y || y == z || x == z) {
int same = 0;
if(x == y) same = x;
if(y == z) same = y;
else same = x;
System.out.println(1000 + same * 100);
} else {
int max = Math.max(x, Math.max(y, z));
System.out.println(max * 100);
}
}
}'BAEKJOON' 카테고리의 다른 글
| [백준] 10810번 : 공 넣기 - JAVA (0) | 2025.10.23 |
|---|---|
| [백준] 15552번 : 빠른 A+B - JAVA (0) | 2025.09.23 |
| [백준] 2525번 : 오븐 시계 - JAVA (0) | 2025.09.22 |
| [백준] 2884번 : 알람 시계 - JAVA (0) | 2025.09.22 |
| [백준] 10171번 : 고양이 - JAVA (0) | 2025.09.22 |