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.getGesture().add(Pose.valueOf(br.readLine()));
		for (int cnt = 0; cnt < game_set; cnt++)
			nakajima.getGesture().add(Pose.valueOf(br.readLine()));

		// ????????????????????????????????????
		for (int turn = 0; turn < game_set; turn++) {
			// ???????????\????????????2???????????????
			for (int chance = 0; chance < 2; chance++) {
				Player p1 = chance == 0 ? isono : nakajima;
				Player p2 = chance == 0 ? nakajima : isono;

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

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

				// p1????????????1??\?????§???????????¢
				if (p1.getGesture().get(turn) == Pose.kougekida && p1.getForce() > 0) {
					if (p1.getForce() >= 5 || p2.getGesture().get(turn) != Pose.mamoru) {
						System.out.println(p1.getPlayerName());
						return;
					}
				}
			}
			// ???????????¢?????¨??£?????´??????????????????0?????????
			if (isono.getGesture().get(turn) == Pose.kougekida)
				isono.setForce(0);
			if (nakajima.getGesture().get(turn) == Pose.kougekida)
				nakajima.setForce(0);
			// ?????????
			if (isono.getGesture().get(turn) == Pose.tameru)
				isono.setForce(isono.getForce()+1);
			if (nakajima.getGesture().get(turn) == Pose.tameru)
				nakajima.setForce(nakajima.getForce()+1);
		}
		System.out.println("Hikiwake-kun");
	}// ?????????????????????????????????
}// ??????????????????????????????

/**
 * ?????¬??????????????¶???
 *
 * @author ?????????????????§???
 */
class Player {

	private int force = 0;
	private String PlayerName;
	private 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 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:90: error: cannot find symbol
	private List<Pose> gesture = new ArrayList<Pose>();
	             ^
  symbol:   class Pose
  location: class Player
Main.java:92: error: cannot find symbol
	public List<Pose> getGesture() {
	            ^
  symbol:   class Pose
  location: class Player
Main.java:96: error: cannot find symbol
	public void setGesture(List<Pose> gesture) {
	                            ^
  symbol:   class Pose
  location: class Player
Main.java:90: error: cannot find symbol
	private List<Pose> gesture = new ArrayList<Pose>();
	                                           ^
  symbol:   class Pose
  location: class Player
5 errors