andy6804tw
7/22/2016 - 5:50 AM

https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=&problem=3135&mosmsg=Submission+received+wi

import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int n=scn.nextInt();
		for(int i=1;i<=n;i++){
			double c=scn.nextDouble(),d=scn.nextDouble();
			d=d*(5/9.);
			System.out.printf("Case %d: %.2f\n",i,c+d);
		}
	}
		/* 
    題目:Q11984: A Change in Thermal Unit
    作者:1010
    時間:西元 2016 年 7 月 */
}