Erfan.aa's blog

By Erfan.aa, history, 15 months ago, In English

Hello Codeforces,

I'm here to introduce Testsaz to you.

Testsaz is a fast, minimal test-case generator system for ICPC-style and IOI-style problems.

It can be helpful when you're preparing some problems for algorithmic contest and Algorithm Design and Data Structures courses.

Here you are: Testsaz GitHub repository

Any feedbacks and contributions are welcomed.

Good luck!

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

15 months ago, # |
  Vote: I like it +11 Vote: I do not like it

Don't forget to use testlib or srand(time(0)); in your generator. Testsaz generates input files with a 1 second time delay, so using only srand(time(0)); suffices for obtaining random and different input files.

This feature doesn't make too much sense for two reasons,

  • if I have 60 test cases and most of them are rather small, I'll need to wait 1 minute anyway to generate the input.
  • For problems preparation, you want to be able to generate the same "random" test case, usually doing srand(test_seed); instead of srand(time(0));.
  • »
    15 months ago, # ^ |
    Rev. 2   Vote: I like it +5 Vote: I do not like it

    Yeah, you're right. I knew these before you tell me. I will make it better in the next versions (commits). Thanks.

  • »
    15 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Hey marX, I updated Testsaz. This issue has been resolved, so you can check it again. Thanks again.