Input: two integers a and b on one line, separated by a space.
Output: a single integer — a + b.
Example: stdin: 2 3 stdout: 5
This mirrors how many online judges feed test cases — get used to stdin/stdout.
// code challenge
~10 min
Warm-up: read two integers from stdin and print their sum.
Input: two integers a and b on one line, separated by a space.
Output: a single integer — a + b.
Example: stdin: 2 3 stdout: 5
This mirrors how many online judges feed test cases — get used to stdin/stdout.
Language: · Judge0
// sample tests
stdin "2 3" → stdout "5"stdin "0 0" → stdout "0"stdin "10 -4" → stdout "6"Sign in to run and submit.
⌘/Ctrl+Enter run · ⌘/Ctrl+Shift+Enter submit · Esc exits fullscreen
Run your code to see test results here.