ZOJ-1242
来源:互联网 发布:centos7搭建lnmp 知乎 编辑:程序博客网 时间:2024/03/29 01:11
import java.util.Scanner;public class Main{public static void main(String[] args){Scanner sc = new Scanner(System.in);int i = 0;while (true){int a = sc.nextInt();int b = sc.nextInt();if (a == 0 && b == 0)break;double r = 5730 * Math.log(810.0 * a / b) / Math.log(2);System.out.format("Sample #%d\n", ++i);if (r < 10000){System.out.format("The approximate age is %d years.\n\n", 100 * Math.round(r / 100));}else{System.out.format("The approximate age is %d years.\n\n", 1000 * Math.round(r / 1000));}}}}
0 0
- zoj 1242
- ZOJ 1242
- ZOJ 1242
- ZOJ-1242
- zoj 1242
- zoj 1242
- ZOJ 1242 Carbon Dating
- ZOJ 1242 1251
- zoj 1242 Carbon Dating
- zoj 1242 Carbon Dating
- ZOJ 1242 Carbon Dating
- zoj 1242 Carbon Dating
- ZOJ 1242 Carbon Dating
- zoj 1242(坑爹题)
- ZOJ 1242 Carbon Dating
- zoj 1242 Carbon Dating
- zoj 1242 Carbon Dating
- zoj 1242 Carbon Dating
- Eclipse 快捷键大全
- curl 实现qq挂号登录
- XMLHelper 类
- 百度地图API开发指南
- ActiveMQ的消息重发与死信管理(DLQ)
- ZOJ-1242
- 怎样才能找回电脑上误删的文件呢?
- 多线程编程 - NSOperationQueue
- VisualNet综合布线管理系统
- Perl语言入门(第五版) 读书笔记(三)---哈希
- qt中插入图片
- Factorial
- 多线程编程4 - GCD
- 基于最小二乘算法的参数估计(matlab程序和测试)