class Solution {
public int solution(int M, int N) {
int answer = 0;
answer += M-1;
answer += M*(N-1);
return answer;
}
}
class Solution {
public int solution(int chicken) {
int service = chicken/10;
int coupon = chicken%10 + service;
while(coupon >= 10){
service += coupon/10;
coupon = coupon%10+coupon/10;
}
return service;
}
}
class Solution {
public boolean solution(int x) {
int sum = 0;
int y = x;
while(x>0){
sum += x%10;
x = x/10;
}
return y%sum==0;
}
}
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //선언
int number = Integer.parseInt(br.readLine());
int[] arr = new int[number];
for (int i = 0; i < number; i++) {
arr[i] = Integer.parseInt(br.readLine());
}
Arrays.sort(arr);
for (int a : arr) {
System.out.println(a);
}
}
}
~p101. Chapter 03. 명령어
백준 1377번,, 시간초과. 못 풀겠음 후엥~
오늘 유어클래스 안 읽었다,, 내일부터 새로운 시간표대로 공부해봐야지.