document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. import java.util.*;
  2.     public class uva10783 {
  3.         public static void main(String [] args) {
  4.             Scanner scn = new Scanner(System.in);
  5.             int n = scn.nextInt();
  6.             for(int x=0;x<n;x++) {
  7.                 int a = scn.nextInt();
  8.                 int b = scn.nextInt();
  9.                 int total = 0;
  10.                 for(int y=a;y<=b;y++) {
  11.                     if((y%2)!=0)
  12.                         total += y;
  13.                 }
  14.                 System.out.println("Case "+(x+1) +": " +total);
  15.             }
  16.     }
  17. }
');