my code is not passing all test cases;
Class Assignment problem
Actually question is somewhat not clear. Here you don’t have to print ( #n : ans ) but you have to print #testcase_number : ans
Example if testcase is
3
2
1
3
output should be
#1 : 3
#2 : 2
#3 : 5