Back
Close

Add one

Statement
The goal is to add one to the input.

Input description
One positive integer [[n]].

Output description
One integer. The result of [[n]]+1 in natural numbers.

Constraints
[[n]]<100

Game modes
FastestShortest

Test cases
Two to three Test
Input
2
Output
3

Validator 1 Validator
Input
1
Output
2

Twelve to thirteen Test
Input
12
Output
13

Validator 2 Validator
Input
15
Output
16

Eighteen to nineteen Test
Input
18
Output
19

Validator 3 Validator
Input
30
Output
31

Ninety nine to hundred Test
Input
99
Output
100

Validator 4 Validator
Input
98
Output
99

Solution language

Solution

Stub generator input
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants