luka25's blog

By luka25, history, 8 years ago, In English

I've come across to weird thing, the problem itself is easy but I don't understand how to read input.I know only solving codeforces like problems so could anybody explain how to do it?

https://paradox.kattis.com/problems/paradoxpath

  • Vote: I like it
  • -12
  • Vote: I do not like it

»
8 years ago, # |
  Vote: I like it +1 Vote: I do not like it

You should send only the implementation of that function. Good luck!

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

    Is it like I have to write just a program with some arguements in main?

»
8 years ago, # |
  Vote: I like it +1 Vote: I do not like it

What you submit should look something like:

int FindPath(const int nStartX, const int nStartY, const int nTargetX const int nTargetY, const unsigned char* pMap, const int nMapWidth, const int nMapHeight, int* pOutBuffer, const int nOutBufferSize){
    //Do some calculations
    return ans;
}