相关代码 |
|
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) throws Exception { Scanner cin=new Scanner(System.in); int N,a,b,i; N=cin.nextInt(); for(i=0;i { a=cin.nextInt(); b=cin.nextInt(); if(a%2==1&&b%2==1) System.out.printf("Scenario #%d:\n%d.41\n\n", i+1,a*b); else System.out.printf("Scenario #%d:\n%d.00\n\n", i+1,a*b); } } }
相关资源 |
|