[Solved] Wrong answer in UVa online judge [closed]


You have not read the complete question.

Correct solution is as follows:

#include <stdio.h>
int main()
{
    int a,b,c;
    while(scanf("%d%d",&a,&b)==2)
    {
        printf("%d\n",(a*b)*2);

    }

    return 0;
}

As you may notice above, there can be multiple test cases. You have to account for it. So I have a while loop for it.

solved Wrong answer in UVa online judge [closed]