프로그래머스 코딩테스트 입문 3
2022.11.24일 9문제 완료 기록. 짝수는 싫어요 class Solution { public int[] solution(int n) { int k=0; int[] answer; if(n%2==0){ answer = new int [n/2]; }else{ answer = new int [n/2+1]; } for(int i=0;i= 100000) { price *= 0.95; } return price; } } 문자열안에 문자열 import java.util.*; class Solution { public int solution(String str1, String str2) { int answer = 0; if(str1.contains(str2)) { answer=1; }else { answer=2; ..