展示性能差异: 1.System.out.println()输出 package com.sxd.swapping.test; import org.junit.Test; public class LogTest { @Test public void system(){ long start = System.currentTimeMillis() ; for (int i = 0; i < 1000000; i++) { System.out.println("System.out.…
//package Main; import java.util.Scanner; public class Main { static int [][] mat=new int [2][2]; static int [][] unit=new int [2][2]; static int [][] as=new int [2][2]; //static Solve ans; static int a,b,n; static int mod=7; public static void main(…