Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:贴个代码~

Posted by SCSE10_Candybox at 2011-08-04 19:37:39 on Problem 2505
In Reply To:Re:贴个代码~ Posted by:cpfromcuhk at 2010-03-13 03:52:14
给你个更短的

#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
    double n;
    while (~scanf("%lf",&n))
    {
          while (n>18.0) n/=18.0;
          if (n<=9) printf("Stan wins.\n");
          else printf("Ollie wins.\n");
    }
} 

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator