Diamonds
Practice
3.6 (308 votes)
Ad Hoc
Ad Hoc
Approved
Basic programming
Easy
Hiring
Open
Ready
Root
Code Editor

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
20 votes
Tags:
ArraysBasic ProgrammingEasy
Points:20
95 votes
Tags:
Basic ProgrammingInclusion-exclusionMath
Points:20
60 votes
Tags:
Ad-HocBasic ProgrammingEasyImplementation
Editorial

Login to unlock the editorial