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 | 29 | 30 | 31 |
Tags
- database
- Matrix
- bit manipulation
- Number Theory
- Class
- Binary Tree
- array
- sorting
- Data Structure
- Stack
- 코딩테스트
- 파이썬
- string
- dynamic programming
- Binary Search
- 코테
- implement
- geometry
- Math
- simulation
- hash table
- 자바
- Counting
- Tree
- Method
- greedy
- java
- SQL
- 구현
- two pointers
Archives
- Today
- Total
목록conditional branching (1)
코린이의 소소한 공부노트
[백준 온라인 저지] 2480. 주사위 세개
- 입력: 첫째 줄에 3개의 눈이 빈칸을 사이에 두고 각각 주어진다. - 출력: 첫째 줄에 게임의 상금을 출력 한다. // 같은 눈이 3개가 나오면 10,000원+(같은 눈)×1,000원의 상금을 받게 된다. // 같은 눈이 2개만 나오는 경우에는 1,000원+(같은 눈)×100원의 상금을 받게 된다. // 모두 다른 눈이 나오는 경우에는 (그 중 가장 큰 눈)×100원의 상금을 받게 된다. import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(), b = scan.nextInt(), c = scan.nextInt(); if..
코딩테스트 풀이/JAVA
2023. 3. 17. 14:52