Блог пользователя phantom11

Автор phantom11, 14 лет назад, По-английски
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
  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

14 лет назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится
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.