Блог пользователя rahulpkvij

Автор rahulpkvij, история, 5 лет назад, По-английски

https://codeforces.me/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 !

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

»
5 лет назад, # |
Rev. 5   Проголосовать: нравится 0 Проголосовать: не нравится

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.