CHITEST1 - Sum of two numbers

no tags 

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.


2 3
3.3 4
-1 4

hide comments
aryan12: 2018-09-13 16:03:40

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.

avilashrath: 2018-05-31 18:36:12

can't i upload a turbo c++ ide program??

krystianpecak: 2018-01-26 14:01:31


abuki123: 2018-01-23 08:07:10

Dajcie kod do C++

Last edit: 2018-01-23 08:07:19
at758: 2017-11-01 01:29:57

@vinodjatav, the precision should be more than 6
what that means is: if it is a float then it should show the entire fractional part. Also show the fractional part only if it exists else just show the integral

Last edit: 2017-11-01 01:31:16
danieldomin67: 2017-10-05 01:56:59


Last edit: 2017-10-05 01:57:50
ANURAG PANDEY: 2017-09-05 21:10:50

@vinodjatav hint - use proper datatypes

vinodjatav: 2017-08-21 20:40:59

any one can help me to solve this problem

shubham9261: 2017-08-06 12:37:26

what is 0.7+0.3???
1 or 0.1??

Tejaswini Swain: 2017-02-25 17:19:03

which compiler should i choose to upload a C-file. it's showing compilation error.

Added by:chi
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: GOSU