Why is my solution incorrect
#include <iostream> using namespace std; int main() { ios::syncwithstdio(false); cin.tie(nullptr); int n, k; cin >> n >> k; cout << (n * k + n - 2) / (n - 1) << '\n'; return 0; }
Comments (0)