@deceptikon i have already mailed them twice and also message on fb (when i started this contest) but got no reply till now. but what amazed me is when i saw people submitted their solution in C and C++ and got points.

Try contacting the people who submitted solutions and ask what their approach was. Don't ask for the solution itself, just voice your concern about the ambiguity over N and ask how they got around it. My guess is that they made an unwarranted assumption that happened to be safe on the testing machine.

that they made an unwarranted assumption

yeah..i take 'n' as 11 and got score 20 .
unfortunately i cant message any participant.

should i mark this question solved or unsolved?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.