https://school.programmers.co.kr/learn/courses/30/lessons/76502?language=java 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr import java.util.*;class Solution { public int solution(String s) { int answer = 0; for(int i = 0; i stack = new Stack(); String str = s.substring(i, s.length()) + s.substring(0, i); for(i..
https://www.acmicpc.net/problem/11659 import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); long[] num = new long[N+1]; for(int i = 1; i S[j]-S[i-1])*/
https://school.programmers.co.kr/learn/courses/30/lessons/12914 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr class Solution { public long solution(int n) { long[] answer = new long[2001]; answer[1] = 1; answer[2] = 2; for(int i = 3; i