[백준] 2798번: 블랙잭 - JAVA
·
알고리즘
[작성일: 2023. 10. 11] https://www.acmicpc.net/problem/2798 풀이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(); int sum = 0; int[] card = new int[n]; for (int i = 0; i sum) { sum = tempSum; } ..