Guest User

Untitled

a guest
Oct 21st, 2019
139
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6.     long long int n,m,k,l;
  7.     cin>>n>>m>>k>>l;
  8.     long long int odp=ceil((k+l)/m);
  9.     long long int test=odp*m<=n?odp:-1;
  10.     cout<<test;
  11.     return 0;
  12. }
RAW Paste Data