#include <cstdio>
int main() {
int row, column;
while (scanf("%d%d", &row, &column) != EOF) {
printf("%d\n", row-1 + (column-1) * row);
}
return 0;
}
UVA 10970 (暑假-数学(3) -E - Big Chocolate)
最新推荐文章于 2020-03-01 23:33:55 发布
#include <cstdio>
int main() {
int row, column;
while (scanf("%d%d", &row, &column) != EOF) {
printf("%d\n", row-1 + (column-1) * row);
}
return 0;
}