Back
Close

CheckINT()

Statement

 Goal

Write a program to take input and print 'true' if its an Integer else print 'false'
Input
Line 1:inp-->a string input
Output
true if its an integer else false
Constraints
0<len(inp)<=1000000000000000000
Example
Input
122
Output
true

Game modes
FastestShortestReverse

Test cases
Test 1 Test
Input
122
Output
true

Hello, World! Validator
Input
HelloW0r1d
Output
false

Easy One Test
Input
19
Output
true

Noice Validator
Input
N01C3
Output
false

That's what you are not Test
Input
N00B
Output
false

Not so easy Validator
Input
950
Output
true

Favourite Test
Input
Py7h0n$
Output
false

Good! Validator
Input
GO0d!
Output
false

Overflow.. Test
Input
1983nmnma0dnnnnnnnnnnnnnnnndddddddddddd9827333333333333333333333399999999999999999999993bjjjjjjjjjjjjjjjjjjjjjjjadddddddddddddddddmmmmmmmmmmmmmmmmjjjjjjjjjjjjjjjjjaddddddddddddddddddddd ****ddd
Output
false

Overflow 2... Validator
Input
688888888888122222222222222222222222222222988888888888888888888888888677777777777777777777
Output
true

Tricky! Test
Input
111.23
Output
false

Validator 6 Validator
Input
11.0
Output
false

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