본문 바로가기

GAME/www.codingame.com5

Temperatures import java.util.*;import java.io.*;import java.math.*; /** * Auto-generated code below aims at helping you parse * the standard input according to the problem statement. **/class Solution { public static void main(String args[]) { Scanner in = new Scanner(System.in); int N = in.nextInt(); // the number of temperatures to analyse // System.err.println("N : "+ N); in.nextLine(); int temperatures .. 2015. 2. 11.
Skynet: the Chasm import java.util.*;import java.io.*;import java.math.*; /** * Auto-generated code below aims at helping you parse * the standard input according to the problem statement. **/class Player { public static void main(String args[]) { Scanner in = new Scanner(System.in); int R = in.nextInt(); // the length of the road before the gap. // 점프전까지의 거리. int G = in.nextInt(); // the length of the gap. // 점프.. 2015. 2. 10.
Power of Thor import java.util.*;import java.io.*;import java.math.*; /** * Auto-generated code below aims at helping you parse * the standard input according to the problem statement. **/class Player { public static void main(String args[]) { Scanner in = new Scanner(System.in); int LX = in.nextInt(); // the X position of the light of power int LY = in.nextInt(); // the Y position of the light of power int T.. 2015. 2. 10.
The Descent import java.util.*;import java.io.*;import java.math.*; /** * Auto-generated code below aims at helping you parse * the standard input according to the problem statement. **/class Player { public static void main(String args[]) { Scanner in = new Scanner(System.in); // game loop while (true) { String str = "HOLD"; int check = 0; int check_i = -1; int SX = in.nextInt(); int SY = in.nextInt(); for.. 2015. 2. 9.