Light Oj Solutions: 1000 – Greetings from LightOJ

Problem link: http://www.lightoj.com/volume_showproblem.php?problem=1000

Solution:
This is a EOF related problem.


#include<stdio.h>
int main()
{
    int counter,t,a,b,sum,i;
    counter=0;
    scanf("%d",&t);
    for(i=0;i<t;i++)
    {
        scanf("%d %d",&a,&b);
        sum=a+b;++counter;
        printf("Case %d: %d\n",counter,sum);

    }
    return 0;
}
It would be a great help, if you support by sharing :)
Author: zakilive

Leave a Reply

Your email address will not be published. Required fields are marked *