Skip to main content

Practice · 5 of 5

Byte-Exact Echo

CHALLENGE
Difficulty: intermediate+25 XP

**Description:** Read t test cases; each is two integers a b. For each, print a+b — but format matters: one number per line, no trailing spaces, and a final newline after the last line. **Input:** Line 1: t (1 <= t <= 100000). Next t lines: a b (|a|, |b| <= 10^9). **Output:** t lines, each the sum. **Example:** 3 / 1 2 / 10 -3 / 0 0 -> 3 / 7 / 0.

Back to lesson: Practice: Contest Technique Problem Set