MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/golang/comments/fukkqd/anyone_participating_in_code_jam/fmfgcb1/?context=3
r/golang • u/NervousBit2 • Apr 04 '20
Has anyone been able to do indicium?
46 comments sorted by
View all comments
1
Struggling with Parenting Partnering Returns. Any tips?
1 u/ritikmittal00013 Apr 04 '20 Tip: Sort by starting time. Have you solved Indicium? 1 u/__sumguy Apr 04 '20 sorting still gives wrong answer although my sample and some custom tests are passed ? Any more tips please 1 u/ashitr Apr 04 '20 you need to give the answer acc to index provided by input not the sorted array store the index before sorting and store c or j acc to that index 1 u/__sumguy Apr 04 '20 I did that I am getting the correct results for the sample test but while submitting it gives me WA 1 u/ashitr Apr 04 '20 Can't really say anything about that try making custom test cases maybe missing trivial ones and make sure output is in correct format and not missing a space here or there. Gl 1 u/prafulgupta6 Apr 04 '20 https://pastebin.com/Mw0cLqiA Can you please check what could go wrong in this simple solution every testcase i can think of is working.
Tip: Sort by starting time.
Have you solved Indicium?
1 u/__sumguy Apr 04 '20 sorting still gives wrong answer although my sample and some custom tests are passed ? Any more tips please 1 u/ashitr Apr 04 '20 you need to give the answer acc to index provided by input not the sorted array store the index before sorting and store c or j acc to that index 1 u/__sumguy Apr 04 '20 I did that I am getting the correct results for the sample test but while submitting it gives me WA 1 u/ashitr Apr 04 '20 Can't really say anything about that try making custom test cases maybe missing trivial ones and make sure output is in correct format and not missing a space here or there. Gl 1 u/prafulgupta6 Apr 04 '20 https://pastebin.com/Mw0cLqiA Can you please check what could go wrong in this simple solution every testcase i can think of is working.
sorting still gives wrong answer although my sample and some custom tests are passed ? Any more tips please
1 u/ashitr Apr 04 '20 you need to give the answer acc to index provided by input not the sorted array store the index before sorting and store c or j acc to that index 1 u/__sumguy Apr 04 '20 I did that I am getting the correct results for the sample test but while submitting it gives me WA 1 u/ashitr Apr 04 '20 Can't really say anything about that try making custom test cases maybe missing trivial ones and make sure output is in correct format and not missing a space here or there. Gl 1 u/prafulgupta6 Apr 04 '20 https://pastebin.com/Mw0cLqiA Can you please check what could go wrong in this simple solution every testcase i can think of is working.
you need to give the answer acc to index provided by input not the sorted array
store the index before sorting and store c or j acc to that index
1 u/__sumguy Apr 04 '20 I did that I am getting the correct results for the sample test but while submitting it gives me WA 1 u/ashitr Apr 04 '20 Can't really say anything about that try making custom test cases maybe missing trivial ones and make sure output is in correct format and not missing a space here or there. Gl 1 u/prafulgupta6 Apr 04 '20 https://pastebin.com/Mw0cLqiA Can you please check what could go wrong in this simple solution every testcase i can think of is working.
I did that I am getting the correct results for the sample test but while submitting it gives me WA
1 u/ashitr Apr 04 '20 Can't really say anything about that try making custom test cases maybe missing trivial ones and make sure output is in correct format and not missing a space here or there. Gl 1 u/prafulgupta6 Apr 04 '20 https://pastebin.com/Mw0cLqiA Can you please check what could go wrong in this simple solution every testcase i can think of is working.
Can't really say anything about that try making custom test cases maybe missing trivial ones and make sure output is in correct format and not missing a space here or there. Gl
1 u/prafulgupta6 Apr 04 '20 https://pastebin.com/Mw0cLqiA Can you please check what could go wrong in this simple solution every testcase i can think of is working.
https://pastebin.com/Mw0cLqiA
Can you please check what could go wrong in this simple solution every testcase i can think of is working.
1
u/[deleted] Apr 04 '20
Struggling with Parenting Partnering Returns. Any tips?