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

Автор daftcoder, 13 лет назад, По-английски
If you write on Java and still don't have a good template with most of needed algorithms, I recommend you to pay attention to a template by Abrackadabra.

You can find his code on the standings page, finding him in a table, double-pressing to a cell of a problem and finally clicking on a submit id.

But I don't give a guaranties that all code is correct.

GL & HF ;-)
  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится

13 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
I'm not sure if it is allowed to use code not written by yourself
  • 13 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится
    Moreover using another's code is disallowed. But maybe it can help somebody to start his own algo template.

    BTW, did you look at the code? :)
    • 13 лет назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится
      Yep. I'm currently trying to write some "packer" that will automatically append classes from my prewritten library before submit
13 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
I think using any code that differs from input/output template is a kind of cheating (prewritten algorithm libraries, e-maxx.ru/algo/). Contestant must write any line of solution by yourself and during the contest.
  • 13 лет назад, # ^ |
      Проголосовать: нравится +3 Проголосовать: не нравится
    There is nothing about "during the contest" in the rules
    Also I think using code that is generated by IDE is ok
    • 13 лет назад, # ^ |
      Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится
      It's not about rules, it's about fair play.
      "any line of solution" - except i/o template, of course
      • 13 лет назад, # ^ |
          Проголосовать: нравится +3 Проголосовать: не нравится
        I don't see anything "fair" in writing, say, Dijcstra algo for 100500th time
        • 13 лет назад, # ^ |
            Проголосовать: нравится 0 Проголосовать: не нравится
          You're red and always stay in the top-10 in the rankings on Codeforces. You know all these algorithms for a long time, and so you don't like to write them again and again. It's explainable.
          But look around - there are many green, blue, violet, orange programmers. And it would not be good, if they start to copy and paste code that they don't understand.
          • 13 лет назад, # ^ |
              Проголосовать: нравится +3 Проголосовать: не нравится
            If they wrote it by themselves they must understand it
          • 13 лет назад, # ^ |
              Проголосовать: нравится -6 Проголосовать: не нравится
            in your previous post, you mentioned about "fair play"... here you started to talk about colours? those who are coloured red can do everything and "many other remaining colours" cannot do? you wanted to say this..or?
13 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
I think people must be punished for such a big amount of unused code, as it is done in TopCoder (for more than 30% of unused code).
13 лет назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится
O_o and I don't know about that discussion =)
I see that it's unfair to use not yours code, but what's wrong in using your own code just written some time ago?
  • 13 лет назад, # ^ |
      Проголосовать: нравится +5 Проголосовать: не нравится
    Your programs have lots of unused code and it makes difficult to hack it. x_X
    • 13 лет назад, # ^ |
        Проголосовать: нравится -10 Проголосовать: не нравится
      =D That's the trick. I also thought to hide solve() somewhere in the code, but then even I cannot find it quickly.
      • 13 лет назад, # ^ |
          Проголосовать: нравится +5 Проголосовать: не нравится
        Unused code should not be allowed. Especially in this big amount.
      • 13 лет назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится
        If the code is affected by some bugs it's useless to prevent other users from hacking... It will fail at final tests anyway :)