Hi coders, I am new to CodeChef.
I am participating in May Challenge 2014. I am able to solve problem and getting correct answer in my pc. But codechef says it is wrong. I think my I/O is problem. Please help me.
I am coding like :
Input : 4 1 5 -1 7 0 Output : 2 8 0 7
int main() { cin>>firstNumber; cin>>secondNumber;
//Then Read the Array //After calculating print the result array
for(int i=1;i<=number;i++) {
//Printing array[i] element
}
is this correct way?