Searching...
Sunday, December 8, 2013

Solve of lightoj problem no 1000 - Greetings from LightOJ

9:37 AM

import java.util.Scanner;
class Main{

public static void main(String[] args)
{
    Scanner a = new Scanner(System.in);
    int b,i,c,d; b=a.nextInt();
    for( i=1;i<=b;i++)
    {
    c=a.nextInt();
    d=a.nextInt();
    System.out.println("Case "+i+": "+(c+d)); }
    }

}

0 comments:

Post a Comment

Followers