7-2 然后是几点
作者:互联网
import java.util.Scanner;
public class Main{
public static void main(String[] args){
int a,b,c;
Scanner scan=new Scanner(System.in);
a=scan.nextInt();
b=scan.nextInt()+a%100+a/100*60;
a=b/60*100+b%60;
if(a<100){
System.out.print(0);
}
System.out.print(a);
}
}
标签:Scanner,scan,System,然后,60,nextInt,100,几点 来源: https://blog.csdn.net/qq_58241983/article/details/120433040