phantom11's blog

By phantom11, 13 years ago, In English
Hello coders,
I have made several classes consisting of the different frequently used algorithm implementations like bfs,dfs,permutations ,combinations etc.etc.I have a couple of question:

1)Can I create a package of these classes and use it in different online judges like codeforces,codechef,topcoders.....like I only have to import algorithms.*;
2)If Yes,Then how to create such a package.If no then what are the other better options to use these in the problems of online judge(other than copying and pasting or saving them as a template).

Any help will be appreciated and regareded.
Thanks
  • Vote: I like it
  • +3
  • Vote: I do not like it

13 years ago, # |
  Vote: I like it +2 Vote: I do not like it
1) No, you can't. Imported packages include compiled classes, not sources - and there is no Online Judge which accept compiled files.

2) Use some IDE / Plugin which allows inlining / pasting / templating you need. Seems that depends on how would you like it and at which judge to use. I think that easiest is to define auto-template (in Eclipse for example) which is substituted when you type in some letters combination etc.
  • 13 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it
    I use BlueJ and I dont find any auto template option in that .I use the save template for classes.
    Anyways thanks for clearing my doubts
    • 13 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it
      I can recommend you to switch from BlueJ at once.

      As I know this IDE is good only for educational purposes, not for serious work. If you want to become a successful programmer - try to become acquainted with any good and popular IDE - for example Eclipse or NetBeans.
    • 13 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it
      You can use IDEA with Egor's plugin http://mirror.codeforces.com/blog/entry/2939?locale=en :)
    • 13 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it
      As said above, my plug-in is supposed to do exactly what you want in your first question
      • 13 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it
        It looks that people do not like to read length posts about useful plug-ins... May be it is time to think about video-lesson for them? :-)
      • 13 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it
        It seems to be great Egor .Will make testing codes so easy than presently for me.
        But I cannot understand how to install it.I use BlueJ as said earlier.It seems I have to create a directory for the plugin.But do I have to do it in the Bluej's directory or the JAVA's directory.
        • 13 years ago, # ^ |
            Vote: I like it +3 Vote: I do not like it
          It is only for IntelliJ Idea. There is community edition which is free