Why I'm getting Memory limit error in every question???

Revision en1, by TanishqRJ, 2023-02-04 09:55:13

I tried this quetion and was getting Memory limit error: https://mirror.codeforces.com/problemset/problem/151/A There's no way this code will take more than 256megabytes Here's my code: ---------------

include

include<bits/stdc++.h>

using namespace std; int main() { int n,k,l,c,d,p,nl,np; cin >> n >> k >>l >> c >> d >> p >> nl >> np; k = k * l/nl; c = c * d; p = p / np; cout<<min(k, min(c, p))/n; }

Tags help, error, need help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English TanishqRJ 2023-02-04 09:57:19 80
en1 English TanishqRJ 2023-02-04 09:55:13 503 Initial revision (published)