목록거스름돈 (1)
hara
BEAKJOON JAVA ALGORITHM #5585(거스름돈)
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)..
공부/알고리즘
2017. 3. 29. 14:09