Cute Number~ε٩(๑> ₃ <)۶з
InterviewTime limit1sMemory limit512 MB
Given an integer up to 10^18, check whether its digits form an arithmetic sequence with a constant difference, and print one of two fixed messages.
- Level
Easy2 of 10
- Topics
- Implementation, Math, String, Brute force
- Solved
- No attempts yet
Problem
Ukgje likes cute numbers~ε٩(๑> ₃ <)۶з. A cute number~ε٩(๑> ₃ <)۶з is a number whose digits form an arithmetic sequence[*]. You want to give Ukgje a cute number~ε٩(๑> ₃ <)۶з as a gift. Given a number, write a program that determines whether it is cute.
[*] Digits that form an arithmetic sequence increase or decrease by a fixed amount (which may be 0) as you go from left to right. If you are not sure what this means, look at the examples. ㅋㅋ!
Input
An integer is given. The input does not start with 0.
Output
If the number is cute, print ◝(⑅•ᴗ•⑅)◜..°♡ 뀌요미!!; if it is not cute, print 흥칫뿡!! <( ̄ ﹌  ̄)>. Print without the quotation marks.