Hi there,
My solution to "COINS" on ideone and during my testing is working fine. But I get
time limit exceeded. How to cope with that kind of input, where number
of test cases isn't provided first? Does the program need to close
after time limit or is it enough to provide right output in this time?

  • created

    Jul '17
  • last reply

    Sep '17
  • 1

    reply

  • 1.0k

    views

  • 2

    users

  • 1

    like

2 months later

This usually means either your program is not efficient enough (i.e. too slow for some bigger input) or it has some mistakes that probably make an infinite loop for certain test data.