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

Автор Bryma, история, 3 года назад, По-английски

Can someone provide me a link or some type of tutorial how am i supossed to write it ? I tells us that we need to write the answers in : int 64 somefunction(int64 [] K) : but how i can test if it's correct or not ?

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

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

Without knowing where you're trying to submit, it's very hard to provide specific advice. But based on my experience submitting in oj.uz, tasks which require you to implement a function should provide a zip file with a tester program written for you.

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

    OK, im trying only to test it, how to do it ?

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

      Copying from my above comment: tasks which require you to implement a function should provide a zip file with a tester program written for you.

      Are you viewing the statements through an online judge, or do you have just the PDF of the statements?

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

        I had downloaded a "zip" from IOI website (Sorry for responding late — "You can write no more than 1 comment in 10 minutes" ) If i can't test in the full test locally then is there any online judge ? ( I will write evertying cuz of 10 min break). When i want to check it i need to use a grader ? if yes then how ?

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

          If you want to make sure your solution is fully correct, then yes you'll need an online judge. The only one I've ever used is oj.uz. It's a little hard for me to find things on there but it should have most if not all of the recent IOI problems. And you'll need to make sure to switch the language settings from Korean to English.

          If you can't find your IOI problem on there, let me know and I'll see if I can find it.

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

After downloading the zip file you must add the greader, the "name".cpp and "name".h in your project. Then you write your solution in "name".cpp . Now you can test as it says in the statement

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

If you want to check if the solution is correct go to this link, there you will find other links to the problem you are looking for.