목록공부/알고리즘 (52)
hara
https://www.acmicpc.net/problem/5585 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class a5585 { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int num=Integer.parseInt(br.readLine()); int coin=0; int cnt=0; coin=1000-num; if(coin>=500)..
https://www.acmicpc.net/problem/3040 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; public class a3040 { public static void main(String[] args) throws NumberFormatException, IOException { int[] a=new int[9]; int sum=0; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); //Scanner sc=new Scanner(System.in)..
https://www.acmicpc.net/problem/5054 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; public class a5054 { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int num=Integer.parseInt(br.readL..