d4rks0c1ety's blog

By d4rks0c1ety, history, 7 years ago, In English

CodeForces contests run for short time and thus there's crunch of time to do well. This Browser Extension will help you in automatically copying the sample cases in your clipboard once you get to the problem page.

All scripts are running in background.

  • Go to CFHelper
  • Download these files in a folder named CFHelper.
  • Open your Chrome Browser and go to chrome://extensions
  • Click on Load Unpacked and open the CFHelper Folder.
  • You are all set.
  • Happy Coding !!

Make sure to make changes to your code to get number of test cases in your input and take care during submitting your code

Github

Twitter

Gmail

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

| Write comment?
»
7 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

this is very useful. It usually takes a lot of time to individually copy all sample cases and test. Now I can test all sample cases at once.

»
7 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I'm afraid there's not much practicality to this yet. The time you'd require to change your code to allow for testcases would in most cases far exceed the time required to copy the samples separately. Something like Hightail, on the other hand, is more suited for this.

  • »
    »
    7 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    No, you just need 3 lines.

    if (fopen("FILENAME.in", "r")) {
    	freopen("FILENAME.in", "r", stdin);
    	freopen("FILENAME.out", "w", stdout);
    }
    

    If the file doesn't exist it uses standard input/output.