rev='made'/> name='keywords'/> name='author'/> ANURANAN: UVa Solution 10300: Ecological Premium

Welcome Note

Hi,
I'm Anisuzzaman Babla . I am a full stack Android Application Developer. I am working with Android for more than two years. I have completed my graduation from IIT, Jahangirnagar University. I have developed a series of commercially successful apps on Android. Moreover, 10+ of my Apps are live at Google play store. .
Thank You

UVa Solution 10300: Ecological Premium

#include<cstdio>
int main()
{
    int n,f;
    long int a,b,c,d,x=0;
    while(scanf("%d",&n)==1)
    {
        while(n--)
        {
            x=0;
            scanf("%d",&f);
            while(f--)
            {
                scanf("%ld %ld %ld",&a,&b,&c);
                d=a*c;
                x=x+d;
            }
            printf("%ld\n",x);
        }
    }
}