A plus B large floating-point numbers

View as PDF

Submit solution

Points: 100.00
Time limit: 1.0s
Memory limit: 1G
Input: stdin
Output: stdout

Author:
Problem type
Allowed languages
C, C++, GAS64, Pascal, Perl, PHP, Python, Sed, TCL, Text

Cho 2 số thực không âm ab

Yêu cầu: Tính a+b

Dữ liệu vào: Hai số ab trên 2 dòng

Kết quả: Giá trị của a+b

Chú ý: a,b là số rất lớn lên đến hàng triệu chữ số

Ví dụ:
Input 1:
Copy
23.32
23.62
Output 1:
Copy
46.94
Input 2:
Copy
12111222999090909032323232390.9090909090909090904242342422352352352354444423
1414141410491049120940129401924093059454.5454545454324240909067686785
Output 2:
Copy
1414141410503160343939220310956416291845.4545454545233331813310029207352352352354444423

Comments

Please read the guidelines before commenting.


There are no comments at the moment.