Skip to content

Instantly share code, notes, and snippets.

View bhi5hmaraj's full-sized avatar
🏖️

Bhishmaraj bhi5hmaraj

🏖️
View GitHub Profile
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
@bhi5hmaraj
bhi5hmaraj / CONSESNK.java
Last active May 29, 2017 07:59
Stresstester for CONSENK
import java.util.*;
import java.io.*;
class CONSESNK {
/************************ SOLUTION STARTS HERE ************************/
static int N;
static long L;
import java.util.*;
import java.io.*;
public class Main {
/************************ SOLUTION STARTS HERE ************************/
static final int INF = (int) 1e9;
@bhi5hmaraj
bhi5hmaraj / Main.java
Created July 26, 2017 20:17
Lazy Cows AC solution
import java.util.*;
import java.io.*;
public class Main {
/************************ SOLUTION STARTS HERE ************************/
static final int INF = (int) 1e9;
static int compress[][];
import java.util.*;
import java.io.*;
public class MikeandMatrixGame {
/************************ SOLUTION STARTS HERE ************************/
static final int MAX = 1234;
static double logFact[];
import java.util.*;
import java.io.*;
public class MathisonAndThePeculiarSums {
/************************ SOLUTION STARTS HERE ************************/
static int adj[][];
static int wt[] , inv[];
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
import java.util.*;
import java.io.*;
public class LA_5108 {
/************************ SOLUTION STARTS HERE ************************/
static double pt[][];
import java.util.*;
import java.io.*;
public class FacelessArya {
/************************ SOLUTION STARTS HERE ************************/
static int MAX = (int) 1e6;
@bhi5hmaraj
bhi5hmaraj / LA_5116.java
Last active November 11, 2017 05:01
AC code
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};