sneaking's blog

By sneaking, history, 6 years ago, In English

I have learned the normal version of CHT quite long ago. But I am having trouble implementing the dynamic version of it. I searched for some implementations and found this. Though its pretty short, I can't understand it much :( and I will be participating in my country's OI competition soon. There I can't bring templates with me. So, if anyone can provide me with an easier code, it will be really helpful. :)

Full text and comments »

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

By sneaking, history, 6 years ago, In English

Recently I started practicing on USACO(contest site) and I realized that the oldest ones don't have the submit option with them. Instead there are the test data with input and output files in a .zip file. So how can I easily run all the tests and match them with the output files? Obviously I could run them one by one and then compare the two output files, but that is going to take a long time because some problems have quite a lot of files. Any help please?

Full text and comments »

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