ACM (TJU) : 3224



#include <stdio.h>

int main ()
{
	int testCase;
	scanf ("%d", &testCase);

	while ( testCase-- ) {

		long long x, y;

		scanf ("%lld %lld", &x, &y);

		printf ("%lld\n", (x * y) - 1);
	}

	return 0;
}

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.