a215. ๆ˜Žๆ˜Žๆ„›ๆ•ธๆ•ธ 5/16/2025

่งฃๆณ•ไธ€

โœ… ๅฎŒๆ•ดไปฃ็ขผ

่ฉ•ๅˆ†็ตๆžœ(ๅƒ่€ƒ) ๏ผš AC (2ms, 308KB)

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

int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int n, m;
    while(cin >> n >> m){
        int sum=0, t=0;
        while(true){
            sum += (n + t);
            t++;
            
            if(sum > m) break;
        }
        cout << t << "\n";
    }
    
    return 0;
}