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

Правка en2, от TanishqRJ, 2023-02-04 09:57:19

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: https://mirror.codeforces.com/contest/151/submission/192111544 ---------------

OR

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; }

Теги help, error, need help

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский TanishqRJ 2023-02-04 09:57:19 80
en1 Английский TanishqRJ 2023-02-04 09:55:13 503 Initial revision (published)