fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main(){
  4. int n , s, m ;
  5. cin >> n >> s >> m ;
  6. int song = s*m ;
  7. int soNgayDiCho = s - s/7 ;
  8. int tongDiCho = soNgayDiCho*n;
  9. if(tongDiCho < song) cout << "-1";
  10. else{
  11. cout << (song + n - 1)/n ;
  12. }
  13. }
  14.  
Success #stdin #stdout 0.01s 5304KB
stdin
7 5 7
stdout
5