A+B (MC)

Time limit1sMemory limit512 MB

Summary
Build a Minecraft redstone circuit that reads two integers from a command interpreter and outputs their sum.
Level

Easy1 of 10

Topics
Simulation, Implementation, Math
Solved
No attempts yet

Problem

Submit a Minecraft world that computes A+B.

Input

The first line of the interpreter gives two integers A and B, separated by a space. (0 < A,B < 10)

Output

Make the interpreter print the value of A+B on the first line.

Hint

Unless a subtask states otherwise, the number of ticks is not limited, but too many operations can result in a time limit exceeded verdict. The amount of computation is proportional to the number of redstone updates received.

Examples1

  1. Example 1

    Input
    1 2
    
    Expected output
    3