UVa 10916 - Factstone Benchmark
来源:互联网 发布:全局搜索能力强的算法 编辑:程序博客网 时间:2024/05/18 14:44
#include <cstdio>#include <cmath>int a[23];void pre(){ int i = 1, j=1; double s1=2, s2=0; while(i<23) { while(s1-s2 > 1e-9) { s2 += log2(++j); } a[i++] = j-1; s1 *= 2; }}int main() { #ifndef ONLINE_JUDGE freopen("in.txt", "r", stdin); #endif pre(); int y; while(scanf("%d", &y) == 1 && y) { printf("%d\n", a[(y-1960)/10 + 2]); } return 0;}
- UVa 10916 Factstone Benchmark
- uva 10916 Factstone Benchmark
- UVA 10916 - Factstone Benchmark
- UVa 10916 - Factstone Benchmark
- uva 10916 - Factstone Benchmark
- uva-10916 - Factstone Benchmark
- Uva 10916 - Factstone Benchmark
- uva 10916 - Factstone Benchmark
- UVa 10916 - Factstone Benchmark
- UVA 10916 Factstone Benchmark
- uva 10916 Factstone Benchmark
- UVa 10916 Factstone Benchmark
- UVa 10916 - Factstone Benchmark
- UVa 10916 - Factstone Benchmark
- UVa 10916 - Factstone Benchmark
- UVa 10916 - Factstone Benchmark
- UVA 10916 Factstone Benchmark
- UVA - 10916 Factstone Benchmark
- 数学之美系列六:图论和网络爬虫 (Web Crawlers)
- LeetCode-Palindrome Number
- libavformat
- 关于分页的一次失败的尝试
- 在XML中定义逐帧动画
- UVa 10916 - Factstone Benchmark
- jquery Temp jsonToAction
- Android心得体会 -- Activity改写成类似Dialog实现弹出式菜单
- 如何在zencart里实现多标签标签云效果
- 1366 Incorrect integer value
- 相机防抖
- ubuntu 安装nginx
- 快速Linux重装XP系统
- DCMTK开源库类继承结构与DICOM3.0标准元素定义的对应关系图