标签:ring 零基础 static class port printf void new sys
import java.util.Scanner;
public class Time {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int time = in.nextInt();
int hour = time / 100;
int minute = time % 100;
hour -= 8;
if(hour == 0)
System.out.printf("%d\n",minute);
else if(hour > 0)
System.out.printf("%d%02d\n", hour, minute);
else {
hour += 24;
System.out.printf("%d%02d\n", hour, minute);
}
}
}
标签:ring 零基础 static class port printf void new sys
原文地址:http://www.cnblogs.com/2201192792com/p/7674718.html