Nearly Lucky Number
110A800· newbie2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
40047
Output
NO
Sample 2of 3
Input
7747774
Output
YES
Sample 3of 3
Input
1000000000000000000
Output
NO
58%
110A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
40047
NO
7747774
YES
1000000000000000000
NO