Please read the new rule regarding the restriction on the use of AI tools. ×

signature's blog

By signature, history, 4 years ago, In English

I was getting this error in some of the problems and my solution was getting Memory Limit Exceeded on Test 1 or Wrong Answer on Test 1. But after adding below lines my solutions got accepted.

ifstream cin("input.txt"); ofstream cout("output.txt");

Link of failed submission

Link of passed submission

Problem253 A

Full text and comments »

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