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
- 코테
- Stack
- database
- Method
- 파이썬
- Binary Tree
- string
- 코딩테스트
- two pointers
- bit manipulation
- sorting
- Tree
- Matrix
- Math
- greedy
- Data Structure
- geometry
- Binary Search
- 구현
- 자바
- Counting
- hash table
- implement
- simulation
- Number Theory
- array
- SQL
- java
- Class
- dynamic programming
Archives
- Today
- Total
코린이의 소소한 공부노트
[프로그래머스/Lv.0] 아이스 아메리카노 본문
1. Input
1) 갖고 있는 돈 money
2. Output
1) 최대로 마실 수 있는 아메리카노의 잔 수와 남는 돈을 순서대로 담은 배열
2) 아메리카노 1잔은 5500원
3. Constraint
1) 0 < money <= 1000000
2) money는 정수
4. Example
Input: money=15000 -> Output: {2,4000}
5. Code
1) 첫 코드(2022/10/18)
int[] answer = {money/5500, money%5500};
return answer;
'코딩테스트 풀이 > JAVA' 카테고리의 다른 글
[프로그래머스/Lv.0] 배열 뒤집기 (0) | 2022.10.20 |
---|---|
[프로그래머스/Lv.0] 나이 출력 (0) | 2022.10.20 |
[프로그래머스/Lv.0] 옷가게 할인 받기 (0) | 2022.10.20 |
[프로그래머스/Lv.0] 최빈값 구하기 (0) | 2022.10.19 |
[프로그래머스/Lv.0] 배열의 평균값 (0) | 2022.10.19 |