Why I'm getting Memory limit error in every question???
Разница между en1 и en2, 80 символ(ов) изменены
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<iostream>↵
#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;↵
}

История

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