ZOJ-1049

来源:互联网 发布:java float 判断相等 编辑:程序博客网 时间:2024/05/15 12:24

 

import java.util.Scanner;public class Main{public static void main(String[] args){Scanner sc = new Scanner(System.in);int count = sc.nextInt();for (int i = 0; i < count; i++){double a = sc.nextDouble();double b = sc.nextDouble();int year = (int) Math.ceil(Math.PI * (a * a + b * b) / 100);System.out.printf("Property %d: This property will begin eroding in year %d.\n", i + 1, year);}System.out.println("END OF OUTPUT.");}}


0 0
原创粉丝点击