import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.Scanner; public class Main{ public static Scanner cin=new Scanner(new BufferedInputStream(System.in)); public static PrintWriter cout=new PrintWriter(new BufferedOutputStream(System.out)); public static void fileIn(){ try { cin=new Scanner(new FileReader("A.in")); cout=new PrintWriter(new FileWriter("A.out")); } catch (IOException e) { e.printStackTrace(); } } public static void closeAll(){ cin.close(); cout.close(); System.exit(0); } public static void main(String[] args) { } }
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240814092323678-2007548550.jpg)