Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:贴个代码~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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator