Back to General discussions forum
Hello I think my code is all right but the checker tells me You are expected to return 5566 country codes!
This is the testcase http://pastebin.com/TmcX8CJV
This is the output of my pascal program
I outputs 5566 country code because when I run ./binary-search-in-array < testcase.txt | tr -cd " " | wc -c
I get 5566 (I have an extra space in the end)
Is the output of my program Incorrect ? http://pastebin.com/BFX5pNry
I also copy the output using ./binary-search-in-array < testcase.txt | xclip -i -selection clipboard
and the program runs under a minute (about 0.04s) ./binary-search-in-array < testcase.txt > /dev/null 0.04s user 0.04s system 78% cpu 0.101 total
Thanks guys!
Solved my bad
Hi! Thank you for reporting this!
Really it looks like a small bug - I think the checker should be tolerant to extra space. I'll try to see, whether it can be easily fixed!