1110번
-
boj)1110PS/boj 2020. 8. 29. 16:02
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); getSum(n, n, 1); } static void getSum(int num, int n, int ans) { int num1, num2, sum, result; if (num < 10) { ..