Advertisement
miglss

2

Mar 21st, 2023
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. void solve(){
  5. int n, k, m;
  6. cin >> n >> m >> k;
  7. int an = (n * k + m - 1);
  8. int ans = an / m;
  9. cout << ans << endl;
  10. }
  11.  
  12. int main(){
  13. ios::sync_with_stdio(NULL), cin.tie(0), cout.tie(0); // Оптимизация
  14. solve();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement