All Tracks Basic Programming Complexity Analysis Time and Space Complexity Problem

A + B
Tag(s):

Easy

Problem
Editorial
Analytics

Problem Description

Given a series of integer pairs $$A$$ and $$B$$, output the sum of $$A$$ and $$B$$.

Input Format

Each line contains two integers, $$A$$ and $$B$$. One input file may contain several pairs $$P$$ where $$0 \leq P \leq 12$$.

Output Format

Output a single integer per line - The sum of $$A$$ and $$B$$.

Constraints

$$0 \leq A, B \leq 10^{98}$$

SAMPLE INPUT
1 2
2 5
10 14
SAMPLE OUTPUT
3
7
24
Time Limit: 1.0 sec(s) for each input file.
Memory Limit: 256 MB
Source Limit: 1024 KB
Marking Scheme: Marks are awarded when all the testcases pass.
Allowed Languages: Bash, C, C++, C++14, Clojure, C#, D, Erlang, F#, Go, Groovy, Haskell, Java, Java 8, JavaScript(Rhino), JavaScript(Node.js), Julia, Kotlin, Lisp, Lisp (SBCL), Lua, Objective-C, OCaml, Octave, Pascal, Perl, PHP, Python, Python 3, R(RScript), Racket, Ruby, Rust, Scala, Swift, Swift-4.1, TypeScript, Visual Basic

CODE EDITOR

Initializing Code Editor...
Your Rating:

Contributor

This Problem was Asked in

Ateneo de Manila University - Department of Information Systems and Computer Science

Challenge Name

CSDC102 Final Examination [Open]

Notifications
View All Notifications

?