View GuardiansoftheLunaticsVol2.java
import java.util.*;
import java.io.*;
public class GuardiansoftheLunaticsVol2 {
/************************ SOLUTION STARTS HERE ************************/
static long memo[];
static long pref[];
View ETFS.java
import java.util.*;
import java.io.*;
class ETFS {
/************************ SOLUTION STARTS HERE ************************/
static int primes[];
static final int MAX = (int) 1e7;
View LA_5117.java
import java.util.*;
import java.io.*;
public class LA_5117 {
/************************ SOLUTION STARTS HERE ************************/
static class MM { // MM (Modular Math) class
View LA_5116.java
import java.util.*;
import java.io.*;
public class LA_5116 {
/************************ SOLUTION STARTS HERE ************************/
static int P;
static int primes[] = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67};
View FacelessArya.java
import java.util.*;
import java.io.*;
public class FacelessArya {
/************************ SOLUTION STARTS HERE ************************/
static int MAX = (int) 1e6;
View LA_5108.java
import java.util.*;
import java.io.*;
public class LA_5108 {
/************************ SOLUTION STARTS HERE ************************/
static double pt[][];
View uva_12546.java
import java.util.*;
import java.io.*;
public class uva_12546 {
/************************ SOLUTION STARTS HERE ************************/
static final int mod = 1000000007;
static final int modInv2 = 500000004; // 2^-1
View MathisonAndThePeculiarSums.java
import java.util.*;
import java.io.*;
public class MathisonAndThePeculiarSums {
/************************ SOLUTION STARTS HERE ************************/
static int adj[][];
static int wt[] , inv[];
View MikeAndMatrixGame.java
import java.util.*;
import java.io.*;
public class MikeandMatrixGame {
/************************ SOLUTION STARTS HERE ************************/
static final int MAX = 1234;
static double logFact[];
View Main.java
import java.util.*;
import java.io.*;
public class Main {
/************************ SOLUTION STARTS HERE ************************/
static final int INF = (int) 1e9;
static int compress[][];