Skip to content

Instantly share code, notes, and snippets.

import java.io.*;
import java.util.*;
import static java.lang.Math.*;
public class Solution {
BufferedReader in;
StringTokenizer st;
PrintWriter out;
/**
* Sorting 10000000 elements...
Sorting byte array = 23
Sorting char array = 33
Sorting short array = 34
Sorting int array = 874
Sorting long array = 941
Sorting double array = 993
Sorting float array = 1005
Compiled from "Solution.java"
public class Solution {
java.io.BufferedReader in;
java.util.StringTokenizer st;
java.io.PrintWriter out;
int n;
public class Holder {
private int n;
public Holder(int n) { this.n = n; }
public void assertSanity() {
if (n != n)
throw new AssertionError("This statement is false.");
} }
import java.io.*;
import java.util.*;
import static java.lang.Math.*;
public class Solution {
BufferedReader in;
StringTokenizer st;
PrintWriter out;
60x21=1260
93x15=1395
41x35=1435
51x30=1530
87x21=1827
81x27=2187
86x80=6880
5010x2001=10025010
4001x2510=10042510
5001x2010=10052010
5016x2004=10052064
8001x1260=10081260
5021x2012=10102252
4032x2511=10124352
4707x2151=10124757
7107x1425=10127475
8201x1235=10128235
public class Test {
static class Timer {
long time;
long current;
public void reset() {
public class Test {
static class Timer {
long time;
long current;
public void reset() {
import java.io.*;
import java.util.*;
import javax.management.RuntimeErrorException;
import static java.lang.Math.*;
public class Solution {
BufferedReader in;