mirror of https://github.com/nmlgc/ReC98.git
8 lines
126 B
C++
8 lines
126 B
C++
|
#define digit_count(num) ( \
|
||
|
(num >= 10000) ? 5 : \
|
||
|
(num >= 1000) ? 4 : \
|
||
|
(num >= 100) ? 3 : \
|
||
|
(num >= 10) ? 2 \
|
||
|
: 1 \
|
||
|
)
|