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

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

Hi everybody: I don't know why my solution for Prob 550 div 2 fails in this test case. I am getting 2 as expected, and system test got 1. I got WA but maybe system test is wrong, (I don't think so). Thanks in advance.

I sent the same code now in practice rooms and I got 549.88 of 550. How it is posible????

Solution in ideone got 1 too as TopCoder System, for this test case. But, I don't see why!!!

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

»
11 лет назад, # |
Rev. 6   Проголосовать: нравится 0 Проголосовать: не нравится

It seems you have "==" instead of "=" several times. Check 71,78,87,94 lines of your ideone code.

I suspect something is not initialized properly.

  • »
    »
    11 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Thanks man, I don't believe my mistake. I was trying to write code as fast I can and It is a big error. I fixed, but it is the same. Maybe it is something not initialized properly as you said.

    • »
      »
      »
      11 лет назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      Does the code still produce 2 on your machine? What compiler do you use?

      • »
        »
        »
        »
        11 лет назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        I am using Borland C++ builder because I have windows installed. Can you please give me some advice about one better IDE I can install in windows? Thanks

        • »
          »
          »
          »
          »
          11 лет назад, # ^ |
            Проголосовать: нравится +4 Проголосовать: не нравится

          You can use CODEBLOCKS IDE for windows

          • »
            »
            »
            »
            »
            »
            11 лет назад, # ^ |
              Проголосовать: нравится 0 Проголосовать: не нравится

            Thanks, I saw this IDE few minutes ago. It is new for me. I am trying to configure C/C++ compiler in Netbeans. I will install CodeBlocks too.

»
11 лет назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

Thanks friends, I saw where was my mistake. I forgot to write line 93. You can see it in IDEONE. I installed CodeBlock, it is a great IDE.