I don't know what is wrong with my code! As my both codes produce the same output but one is AC and other is not?

Problem link : SALARY Problem - CodeChef

first code link : CodeChef: Practical coding for everyone

second code link: CodeChef: Practical coding for everyone

1 Like

Please either format your code or (better!) link to your submission - the forum software has mangled it and it won’t compile! :slight_smile:

Edit:

Also - what Problem are these solutions for?

2 Likes

okk

They produce different output for e.g. the test input:

1                      
3
1 1 10
1 Like

thanks now I know I have to think much about test cases.

1 Like