Problem Type : Super Easy
#include<stdio.h>
int main()
{
int n,m,piece;
while((scanf("%d%d",&n,&m))==2)
{
piece=n*m-1;
printf("%d\n",piece);
}
return 0;
}
#include<stdio.h>
int main()
{
int n,m,piece;
while((scanf("%d%d",&n,&m))==2)
{
piece=n*m-1;
printf("%d\n",piece);
}
return 0;
}
No comments:
Post a Comment