Bryma's blog

By Bryma, history, 4 years ago, In English

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 ?

  • Vote: I like it
  • +3
  • Vote: I do not like it

| Write comment?
»
4 years ago, # |
  Vote: I like it +8 Vote: I do not like it

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.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

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

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it +8 Vote: I do not like it

      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?

      • »
        »
        »
        »
        4 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        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 ?

        • »
          »
          »
          »
          »
          4 years ago, # ^ |
            Vote: I like it +8 Vote: I do not like it

          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.

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
4 years ago, # |
  Vote: I like it +3 Vote: I do not like it

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.