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

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

There is an interactive problem asked in recent ongoing codejam qualification round. I am getting TLE again and again. I don't know how to use local testing tool given there. Please, someone, help me.

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

»
7 лет назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

I'm struggling with it to (and suspect it's the interactive bit). However there is a writeup on the interactive practise problem which contains model solutions. Hope it helps. https://codejam.withgoogle.com/2018/challenges/0000000000000130/analysis/0000000000000523

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

To use the interactive tool, go to the bottom of the problem and press download. It'll warn you about the program, but (for chrome) just go to chrome://downloads/ and click allow. From there, use their instructions: C++, after compilation: python testing_tool.py ./my_binary Python: python testing_tool.py python my_code.py Java, after compilation: python testing_tool.py java my_main_class_name If you can't download it, copy and paste this and put it into a file called testing_tool.py: https://hastebin.com/ayalutugad.py