TanishqRJ's blog

By TanishqRJ, history, 17 months ago, In English

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

  • Vote: I like it
  • +1
  • Vote: I do not like it

| Write comment?
»
17 months ago, # |
  Vote: I like it +1 Vote: I do not like it

Auto comment: topic has been updated by TanishqRJ (previous revision, new revision, compare).

»
17 months ago, # |
Rev. 2   Vote: I like it +1 Vote: I do not like it

where is return 0?? write return 0 at last bro inside

int main(){

return 0;

}

  • »
    »
    2 hours ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thank you, didn't know that time, it was my first try on CodeForces