昨天的cf比赛,第一题

我想了好久为什我的代码不对,
结果是没有写换行

#include <iostream>
#include <vector>
#include <bits/stdc++.h>
using namespace std;

int main() {
	int t;
	cin >> t;
	while (t--) {
		int n, k;
		cin >> n >> k;
		cout << (n - 1)*k + 1 << endl;
	}
	return 0;
}


posted @ 2024-07-01 12:28  Acyclonepl  阅读(2)  评论(0编辑  收藏  举报