Files
Story-With-Thanh/J07010 - DANH SÁCH SINH VIÊN TRONG FILE - 2.java
T
2022-12-15 23:51:04 +07:00

27 lines
782 B
Java

import java.util.*;
import java.io.*;
public class Main{
static String toD(String s){
String[] d = s.split("/");
for(int i=0; i<=1; i++){
while(d[i].length()<2) d[i] = "0" + d[i];
}
return d[0] + "/" + d[1] + "/" + d[2];
}
static String msv(int i){
String s = Integer.toString(i);
while(s.length()<3) s = "0" + s;
return "B20DCCN" + s;
}
public static void main(String[] args) throws IOException{
Scanner sc = new Scanner(new File("SV.in"));
int t = sc.nextInt();
for(int i=1; i<=t; i++){
sc.nextLine();
System.out.printf("%s %s %s %s %.2f\n", msv(i), sc.nextLine(), sc.nextLine(),
toD(sc.next()), sc.nextFloat());
}
}
}