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.*; | |
public class Rotate { | |
static final int BLANK = 0; | |
static final int RED = 1; | |
static final int BLUE = 2; | |
static Scanner sc = new Scanner(System.in); | |
public static void main(String[] args) { |
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.*; | |
public class MagicTrick { | |
static Scanner sc = new Scanner(System.in); | |
public static void main(String[] args) { | |
int t = Integer.valueOf(sc.nextLine()); |
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.*; | |
public class FileFixIt { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
int t = Integer.valueOf(sc.nextLine()); |
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.*; | |
public class CentauriPrime { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
int t = Integer.valueOf(sc.nextLine()); |
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.*; | |
public class ReverseWords { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
int nLines = Integer.valueOf(sc.nextLine()); |