Problem link : SALARY Problem - CodeChef
first code link : CodeChef: Practical coding for everyone
second code link: CodeChef: Practical coding for everyone
Problem link : SALARY Problem - CodeChef
first code link : CodeChef: Practical coding for everyone
second code link: CodeChef: Practical coding for everyone
Please either format your code or (better!) link to your submission - the forum software has mangled it and it won’t compile!
Edit:
Also - what Problem are these solutions for?
okk
They produce different output for e.g. the test input:
1
3
1 1 10
thanks now I know I have to think much about test cases.