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
//http://www.codechef.com/problems/CVOTE | |
import java.io.PrintWriter; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
import java.util.*; | |
public class Main{ | |
Scanner in; | |
String INPUT = ""; |
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.io.PrintWriter; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
import java.util.*; | |
public class Main{ | |
Scanner in; | |
String INPUT = ""; | |
void solve() { | |
int n = ni();//row |
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.io.PrintWriter; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
import java.util.*; | |
public class Main{ | |
Scanner in; | |
String INPUT = ""; | |
void solve() { | |
int t = ni(); |
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
//time out solution using memoization | |
import java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
public class Solution { | |
public static BigInteger minusOne = BigInteger.valueOf(-1); | |
public static BigInteger factorial(BigInteger n,BigInteger[] h){ |
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.Arrays; | |
import java.util.Scanner; | |
import java.util.*; | |
import java.util.Collections; | |
import java.io.*; | |
import java.math.BigInteger; | |
public class Main{ | |
public static void main(String[] args) throws IOException | |
{ | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); |
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
//http://www.codechef.com/problems/JOHNY | |
import java.io.PrintWriter; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
import java.util.*; | |
public class Main{ | |
Scanner in; | |
String INPUT = ""; | |
void solve() { |
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
//codechef COOLING http://www.codechef.com/problems/COOLING | |
import java.io.PrintWriter; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
import java.util.*; | |
public class Main{ | |
Scanner in; | |
String INPUT = ""; | |
void solve() { |
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
TLE:http://www.codechef.com/problems/OJUMPS | |
import java.io.PrintWriter; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
import java.util.*; | |
import java.util.Collections; | |
import java.io.*; | |
import java.math.BigInteger; | |
public class Main{ | |
public static void main(String[] args) throws IOException |
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
//http://www.codechef.com/problems/HORSES/ | |
import java.io.PrintWriter; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
import java.util.*; | |
import java.util.Collections; | |
import java.io.*; | |
import java.math.BigInteger; | |
public class Main{ | |
public static void main(String[] args) throws IOException |
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
//http://www.codechef.com/JAN15/problems/CHEFSTON | |
import java.io.PrintWriter; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
import java.util.*; | |
import java.util.Collections; | |
import java.io.*; | |
import java.math.BigInteger; | |
public class Main{ | |
public static void main(String[] args) throws IOException |
OlderNewer