smoothie-web Problems Contests Ranking About
Login Register

A Plus B

data_usage Points
timer Time Limit
linear_scale Memory Limit

This is the problem statement.

Please solve a+b=ca + b = c.

Input Specification

The first line of input contains the integers aa and bb which are the integers to add.

1a,b101 \le a, b \le 10

Output Specification

The output contains cc. which is the sum of a+ba + b.

Sample Input

1 1

Sample Output


Sample Java Solution

import java.util.Scanner; //get Scanner

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(; //make Scanner
		int a = sc.nextInt(); //get a
		int b = sc.nextInt(); //get b
		int c = a+b; //add them

When writing in java, make sure to name your class Main. Do not include a package.

Sample Python Solution

a, b = map(int, input().split())
print(a + b)

To submit a solution, press the Submit button, type your code in the dialogue, change the grader to the specified language, and press submit!