よじろめ覚書

私の理解度重視のソースコードです。

ABC139B - Power Socket

問題:B - Power Socket

#include <iostream>
using namespace std;

int main(void) {
    int a, b;

    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> a >> b;
    cout << (b - 1 + a - 2) / (a - 1) << "\n";
    return 0;
}