전자레인지
-
boj)10162PS/boj 2020. 8. 24. 22:55
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { static int A, B, C; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int T = Integer.parseInt(br.readLine()); if (T%10 > 0) { System.out.println(-1); } else { A = T/300; T -= A * 300; B = T/60; T -= B * 60; C = T/10; System.out.pr..