rahulpkvij's blog

By rahulpkvij, history, 5 years ago, In English

https://codeforces.net/contest/1241/submission/68625338

I can't figure out why my code isn't working. Please help me figure out a simpler test case that my code fails. Thanks in advance !

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

»
5 years ago, # |
Rev. 5   Vote: I like it 0 Vote: I do not like it

The following is a test-generator for the problem which generates a single randomly generated test-case with known number of tickets $$$n$$$, ticket prices $$$\le100\times p$$$, and total contribution $$$\le q$$$.

https://ideone.com/HcTg2M

You just need to pick any of the available accepted solutions of the problem, and compare the output of your solution to the correct output for the randomly generated test-case.