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

Автор phantom11, 12 лет назад, По-английски

Hi friends,
I used the Chelper plugin of Egor and it works well in codeforces.
Then I tried to setup the moj plugin for topcoder arena.I installed it and got the"4 foundS" when I verified it.
But I am not sure how to use it in IntelliJ i.e. how to install it in IntelliJ or with Chelper, how to test my codes ,how to submit etc.(basically all the implementations of the plugins).
Any help to solve my queries will   be regarded...

UPD:Its done.lovro helped me do it.Thanks to him.For those who could not do it here's what to do:

1)Download the plugin.

2)follow the steps written in the instruction file .

3)Arena->editor->select CodeProcessor->configure->select fileedit->configure->goto template ->paste this code

And Yipee!!! now you dont have to test each and every test case in the arena.Your local editor does that for you(for JAVA and c++only).All you have to do is open the problem file in the arena ->the problem file is generated in the folder specified ->write the code(you can see the result for all test cases when you run it locally)->compile in the arena->submit and yipee you saved so much time.....:)





  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится

12 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
You need configure FileEdit to save source to directory which is "topcoderDirectory" in chelper configuration. Then when you open problem in arena task in idea would be created automatically
  • 12 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится
    Ya I did that.The task comes automatically to the directory (topcoder) but when I open it Idea I can only view and edit the source ,I cannot compile or test it.Please help me on this 
    • 12 лет назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится
      You need to open Idea before you open task in arena. Plugin reacts to file creation, so in order to recreate TC task you need delete old file
      • 12 лет назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится
        Once I open the task in arena the task is created in topcoder directory .Then There are two things to tell:
        *As soon as I write something on the source the run and debug options are gone.So I have to run it once before making any changes to the code.
        *Even after that when I finish my code and run again it says Could not find main class 
      • 12 лет назад, # ^ |
        Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

        My classname.java file is created in the topcoder directory but how to open it in Idea.///Do I just have to click on that file name on the project panel ...if yes then I dont think that the tests are being created because when I try to run it ,it gives an error...task.in not found

        here's the screenshot[image]

        • 12 лет назад, # ^ |
            Проголосовать: нравится 0 Проголосовать: не нравится
          If idea with chelper is open and properly configured then when you open problem in arena new file would be created in defaultDirectory as well and it will be opened
12 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
I've never tried the Chelper plugin. But the moj plugin provides the same functionality as stated in your last para. I use moj 4.1.6 with Codeprocessor 2.0 in the TC arena. Here is the link to the moj plugin : http://apps.topcoder.com/forums/;jsessionid=9274EEFDD3BB7110BF3AF0BB10411ED0?module=Thread&threadID=597911&start=0&mc=60#931780
  • 12 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится
    Actually, CHelper uses moj as arena plugin. Main feature it provides for TC tasks - code inlining and unused code elemination. Testing functionality is more useful for standard tasks
  • 12 лет назад, # ^ |
    Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

    @ameydhar:Besides that Chelper also works for codeforces rounds as well.
    It also inlines your code and removes unwanted code.(although have not tried it yet).I had already setup the chelper plugin .Was facing difficulties in moj ,so wrote this blog.Thanks Egor for such a wonderful plugin