This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.io.*; | |
public class LA_5108 { | |
/************************ SOLUTION STARTS HERE ************************/ | |
static double pt[][]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.io.*; | |
public class MathisonAndThePeculiarSums { | |
/************************ SOLUTION STARTS HERE ************************/ | |
static int adj[][]; | |
static int wt[] , inv[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.io.*; | |
public class MikeandMatrixGame { | |
/************************ SOLUTION STARTS HERE ************************/ | |
static final int MAX = 1234; | |
static double logFact[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.io.*; | |
public class Main { | |
/************************ SOLUTION STARTS HERE ************************/ | |
static final int INF = (int) 1e9; | |
static int compress[][]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.io.*; | |
public class Main { | |
/************************ SOLUTION STARTS HERE ************************/ | |
static final int INF = (int) 1e9; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.io.*; | |
class CONSESNK { | |
/************************ SOLUTION STARTS HERE ************************/ | |
static int N; | |
static long L; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.io.*; | |
class Template { | |
private static void solve(FastScanner s1, PrintWriter out) { | |
/* | |
* This is a example on how to use this template |
NewerOlder