ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1795. Husband in a Shop

For whom, who get WA 9
Posted by Gleb_Kazantaev(NNSTU) 26 Jun 2014 18:04
It's too funy!

I forgot to check one little moment

if(goods[v[0].s] == 0){
   time++;
   v.pop_front();
   continue;
}

Or try this test:

1
1 of hell

3
1 of lol
2 of azaz
3 of bug

Answer: 3, but my old programm gives 5 LOL, Good Luck!
Re: For whom, who get WA 9
Posted by Mescheryakov_Kirill 8 Jul 2015 23:11
My problem is not this that gives the correct answer, but despite that WA9
Re: For whom, who get WA 9
Posted by Nikolay Makarov 11 Oct 2015 20:19
Try this:
1
1 of a
3
1 of a
1 of a
1 of b
Correct answer is 3.