传送门:http://bailian.openjudge.cn/practice/2505/

【题解】

我们找找规律:

1~9显然是Stan wins.

10~18是Ollie wins.

19~162是Stan wins...

发现分界线是18^?

判判就行了。

# include <stdio.h>
# include <string.h>
# include <iostream>
# include <algorithm>
// # include <bits/stdc++.h> using namespace std; typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
const int M = 5e5 + ;
const int mod = 1e9+; # define RG register
# define ST static double n; int main() { while (cin >> n) {
while(n > ) n /= ;
if(n <= ) puts("Stan wins.");
else puts("Ollie wins.");
} return ;
}

最新文章

  1. Delphi的Trim函数
  2. lua module环境探秘
  3. shell脚本之间互相调用
  4. struct stat 作用
  5. 原生JS 选项卡代码实现
  6. USB Mass Storage大容量存储的基本知识
  7. 【 VS 插件开发 】二、了解Vs插件结构
  8. 项目中ApplicationContext
  9. JS类型
  10. EJS-初识
  11. Css3实现波浪线效果1
  12. nginx rewrite 指令
  13. 一台服务器绑定多个ip地址
  14. jqgrid 行选中multiboxonly属性说明
  15. JDBC改进版
  16. python第十四课--排序及自定义函数
  17. Word Ladder II Graph
  18. Java集合类 课后练习
  19. TSQL--TOP选项
  20. PAT——1022. D进制的A+B

热门文章

  1. 让Dreamweaver支持cshtml (MVC Razor环境)
  2. Android AppWidget偶尔无响应原因及解决办法
  3. 『JavaScript』new关键字
  4. Prometheus 普罗米修斯监控
  5. 维特比算法(Viterbi)及python实现样例
  6. 九度OJ--Q1167
  7. Toward Convolutional Blind Denoising of Real Photographs
  8. Java实现网页截屏功能(基于phantomJs)
  9. 为DEV C++/CodeBlock配置gdb调试遇到的问题
  10. STL应用——hdu1702(队列+堆栈)