#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; }
অন্তহীন ছুটে চলা, অবিরাম জীবনের অর্থ খুজে ফেরা
#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; }