목록Algorithm/SW Expert Academy (71)
SSONG Cloud
import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int AH = 0; int AM = 0; int T = sc.nextInt(); for (int tc = 1; tc = 60) { AH++; AM = SM + FM - 60; } else { AM = SM + FM; } AH += SH + FH > 12 ? SH + FH - 12 : SH + FH; System.out.println("#" + tc + " " + AH + " " + AM); } } }
import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String args[]) throws Exception { int[] days = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int ans = 0; Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for(int tc = 1; tc
import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T = Integer.parseInt(sc.nextLine()); for(int tc = 1; tc
import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for (int tc = 1; tc max) max = sum; } } else { for (int i = 0; i max) max = sum; } } System.out.println("#" + ..