phantom11's blog

By phantom11, 14 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

14 years ago, hide # |
 
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.