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. // 점프간격
int L = in.nextInt(); // the length of the landing platform.// 점프 후 거리..
System.err.println("낭떠러지 직전거리. : " + R);
System.err.println("간격(GAP) : " + G);
System.err.println("도착지 : " + L);
int total=R+G+L;
System.err.println("총거리 : " + total);
String str = "SPEED";
// game loop
while (true) {
int S = in.nextInt(); // the motorbike's speed.
int X = in.nextInt(); // the position on the road of the motorbike.
System.err.println("속도 : " + S);
System.err.println("오토바이위치 : " + X);
if(S==G+1){
str="WAIT";
}else if(S>=G+1){
str="SLOW";
}
if(X>= R-1){
str="JUMP";
}
if(X >= R+G){
str="SLOW";
}
// Write an action using System.out.println()
// To debug: System.err.println("Debug messages...");
System.out.println(str); // A single line containing one of 4 keywords: SPEED, SLOW, JUMP, WAIT.
}
}
}