水题,觉得好就点个赞,看心情哈哈
我尽量做到java最短代码hh
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int D = scan.nextInt();
int H = scan.nextInt();
int M = scan.nextInt();
if (D == 11 && (H < 11 || H == 11 && M < 11)) System.out.println("-1");
else System.out.println(((D - 11) * 60 * 24) + ((H - 11) * 60 ) + (M - 11));
}
}