package 番外篇2024_100;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class 手机App防沉迷系统 {
static List<int[]> list = new ArrayList<>();
static List<String[]> appname = new ArrayList<>();
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
for (int i = 0; i < N; i++) {
String[] s = sc.nextLine().split(" ");
appname.add(new String[] { "" + i, s[0] });
list.add(new int[] { i, Integer.parseInt(s[1]), changeToFen(s[2]), changeToFen(s[3]) });
}
}
static int changeToFen(String s) {
String[] temp = s.split(":");
int sum = Integer.parseInt(temp[0]) * 60 + Integer.parseInt(temp[1]);
return sum;
}
}
手机App防沉迷系统
最新推荐文章于 2024-05-27 02:02:31 发布