Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

getting input and output ?

$
0
0

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?


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>