Poj Solution 2505

http://poj.org/problem?id=2505

//* @author: 82638882@163.com
import java.util.*;
public class Main
{
 public static void main(String[] args)
 {
    Scanner in=new Scanner(System.in);
    while(in.hasNext())
    {
    double m=in.nextDouble();
    while(m>18)
        m/=18;
    System.out.println(m>9?"Ollie wins.":"Stan wins.");
    }
  }
}

											
This entry was posted in poj. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *