목록Problem Solving (223)
Life Engineering
https://www.acmicpc.net/problem/14556 14556번: Balance 리유나는 양팔저울을 가지고 놀고 있다. 무게가 $2^1$, $2^2$, $\cdots$, $2^N$인 $N$개의 추가 있고, 적당한 순서로 서로 다른 $N$개의 추를 하나씩 놓는 동안, 왼쪽의 무게가 오른쪽의 무게를 넘지 않도 www.acmicpc.net import java.util.Scanner; public class Main_BOJ_14556 { static int N; public static void main(String[] args) { Scanner sc=new Scanner(System.in); N=sc.nextInt(); long ans=1; for (int i=2; i (2^1+2^2+....
https://programmers.co.kr/learn/courses/30/lessons/60059?language=java 코딩테스트 연습 - 자물쇠와 열쇠 [[0, 0, 0], [1, 0, 0], [0, 1, 1]] [[1, 1, 1], [1, 1, 0], [1, 0, 1]] true programmers.co.kr import java.util.Arrays; class Solution { int[][] map; int M, N; int mapSize; public boolean solution(int[][] key, int[][] lock) { boolean answer = false; M=key.length; N=lock.length; mapSize=2*(M-1)+N; makeBoard(lock..
https://www.acmicpc.net/problem/16637 16637번: 괄호 추가하기 길이가 N인 수식이 있다. 수식은 0보다 크거나 같고, 9보다 작거나 같은 정수와 연산자(+, -, ×)로 이루어져 있다. 연산자 우선순위는 모두 동일하기 때문에, 수식을 계산할 때는 왼쪽에서부터 순 www.acmicpc.net import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main_BOJ_16637 { static int N; static String s; static int[] nums; static char[] op; static int max=Integer.MI..
https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWQmA4uK8ygDFAXj SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class SW4615 { static int T; static int N, M; static int[][] map; static int[] dy= {-1,1,0..