Sunday, May 20, 2012

UVA Solution for 10970

#include <stdio.h>

int main()
{
    int m,n,c;
    while(scanf("%d%d",&m,&n)==2)
    {
              c=m*n-1;
              printf("%d\n",c);
                                 }

}