eolymp
bolt
Try our new interface for solving problems
published at 2/16/24, 2:46:29 pm

include <bits/stdc++.h>

using namespace std;

define io iosbase::syncwith_stdio(0);cin.tie(0);

define int long long

signed main() { io

int n,s;
cin >> n >> s;
if(s%n == 0) cout << s/n;
else cout << s/n + 1;

}

published at 2/20/24, 7:52:24 pm

include <bits/stdc++.h>

define ll long long int

define ld long double

using namespace std; int main(){

ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
ll n, m, ans = 0;
cin>>n>>m;
ll k = 0;
if(m % n == 0){
    cout<<m/n;
    return 0;
}
while(1){
    ans++;
    k+=n;
    if(k>m){
        break;
    }
}
cout<<ans;

} //TECHNOBLADE NEVER DIES