CHITEST1 - Sum of two numbers
Compute the sum of two numbers.
The first line of the input will include the number N of test cases, and the each of the following N lines will include two numbers separated by whitespace.
Starting with the second line of the input, the sum of the two numbers in the line must be printed into a line in the output. The accuracy of the output should be better than 10^-6.
how to pass input in it
easy to do in c++ than in c
%g but still WA
How can I judge a number whether It is a int or a float?
A very easy problem. As there are no constraints given, use a greater bit data type and show the entire part of the answer else you MAY get a WA.
can't i upload a turbo c++ ide program??
Dajcie kod do C++Last edit: 2018-01-23 08:07:19
@vinodjatav, the precision should be more than 6