Language: Java



import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

import Sendame.Sendame.Pose;

/**
 * AOJ Sendame</br>
 *
 * @author ?????????????????§???
 */
public class Main{
	public enum Pose {
		tameru, mamoru, kougekida;
	}// ?????????Pose????????????

	/*
	 * ????????°???????????¨?????????????????????
	 */
	public static void main(String[] args) throws NumberFormatException, IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		// 1?????????????????¬?????????????????????????????°
		int game_set = Integer.parseInt(br.readLine());
		// ?????¬?????????????????????????????????
		Player isono = new Player("Isono-kun");
		Player nakajima = new Player("Nakajima-kun");

		// ???????????\??????????????¬??????????????????????????????????´???????
		for (int cnt = 0; cnt < game_set; cnt++)
			isono.gesture.add(Pose.valueOf(br.readLine()));
		for (int cnt = 0; cnt < game_set; cnt++)
			nakajima.gesture.add(Pose.valueOf(br.readLine()));
		// ????????????????????????????????????
		for (int turn = 0; turn < game_set; turn++) {
			// ???????????\????????????2???????????????
			for (int i = 0; i < 2; i++) {
				Player p1 = i == 0 ? isono : nakajima;
				Player p2 = i == 0 ? nakajima : isono;

				// ?????????????????????p1???????????????????????????????????????

				// p2????????????0??§???????????¢
				if (p2.gesture.get(turn) == Pose.kougekida && p2.getForce() == 0) {
					// p1????????????0??§???????????¢??§??????
					if (!(p1.gesture.get(turn) == Pose.kougekida && p1.getForce() == 0)) {
						System.out.println(p1.PlayerName);
						return;
					}
				}

				// p1????????????1??\?????§???????????¢
				if (p1.gesture.get(turn) == Pose.kougekida && p1.getForce() > 0) {
					if (p1.getForce() >= 5 || p2.gesture.get(turn) != Pose.mamoru) {
						System.out.println(p1.PlayerName);
						return;
					}
				}
			}

			// ???????????¢?????¨??£?????´??????????????????0?????????
			if (isono.gesture.get(turn) == Pose.kougekida)
				isono.force = 0;
			if (nakajima.gesture.get(turn) == Pose.kougekida)
				nakajima.force = 0;
			// ?????????
			if (isono.gesture.get(turn) == Pose.tameru)
				isono.force++;
			if (nakajima.gesture.get(turn) == Pose.tameru)
				nakajima.force++;
		}
		System.out.println("Hikiwake-kun");
	}// ?????????????????????????????????
}// ??????????????????????????????

/**
 * ?????¬??????????????¶???
 *
 * @author ?????????????????§???
 */
class Player {
	/**
	 * ?????????
	 */
	public int force = 0;
	/**
	 * ?????¬??????????????????
	 */
	public String PlayerName;
	/**
	 * ??????????????¶???
	 */
	public final static int MAX_FORCE = 5;

	public List<Pose> gesture = new ArrayList<Pose>();

	public List<Pose> getGesture() {
		return gesture;
	}

	public void setGesture(List<Pose> gesture) {
		this.gesture = gesture;
	}

	public String getPlayerName() {
		return PlayerName;
	}

	public void setPlayerName(String playerName) {
		PlayerName = playerName;
	}

	public int getMax_force() {
		return MAX_FORCE;
	}

	public int getForce() {
		return force;
	}

	public void setForce(int force) {
		this.force = force;
	}

	// ?????¬??????????????¶???????????????
	Player(String name) {
		this.PlayerName = name;
	}
}// Player?????????????????????

Compiler output:
Main.java:9: error: package Sendame.Sendame does not exist
import Sendame.Sendame.Pose;
                      ^
Main.java:99: error: cannot find symbol
	public List<Pose> gesture = new ArrayList<Pose>();
	            ^
  symbol:   class Pose
  location: class Player
Main.java:101: error: cannot find symbol
	public List<Pose> getGesture() {
	            ^
  symbol:   class Pose
  location: class Player
Main.java:105: error: cannot find symbol
	public void setGesture(List<Pose> gesture) {
	                            ^
  symbol:   class Pose
  location: class Player
Main.java:99: error: cannot find symbol
	public List<Pose> gesture = new ArrayList<Pose>();
	                                          ^
  symbol:   class Pose
  location: class Player
5 errors