Tuesday, July 28, 2015

1000 - Greetings from LightOJ

#include<stdio.h>

int main(void)
{
    int T,a,b,count=0;
    scanf("%d",&T);

    while(T-->0  && (scanf("%d%d",&a,&b)!=EOF))
    {
        if(a<=10 && a>=0 && b<=10 && b>=0)
       {
           count++;
           printf("Case %d: %d\n",count,a+b);
       }
    }
    return 0;
}

No comments:

Post a Comment

Triathlon

Triathlon - CodeChef # include < bits/stdc++.h > using namespace std ; # define fi first # define se second # define mp ...