Unique strings Sergey Svistunov

Count the exact number of unique tokens as fast as possible.

Input

One token per line on STDIN:

JWXcKKaWzvFL5
Rof
3ztCpA
5wHcGN
*UiEMthaTS*g

Output

Print the exact count of unique tokens to STDOUT.

Constraints

  • Character set: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@#%*
  • Maximum token length: 16
  • Approximately 1,000,000 unique tokens
Back to listOct 6, 2026 02:36Karthik ReddyKarthik ReddyError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2026 02:3803,374,092,5663,314,716,00049,947,0002,117,632expected "1021761 ", got "m 141706 157618 162562 242965 252935 60932 3014 29 0 n 723345 45193 42159 42269 42175 42259 42203 42158 r 376 3839 38391 382996 3558763 18394353 6599511 10 l 2415 4344 "
2Oct 6, 2026 02:3803,378,645,4693,320,940,00048,518,0002,117,632expected "1020051 ", got "m 140974 156798 161718 242338 254225 60969 2995 34 0 n 723317 44968 42031 41970 41951 41857 41961 41996 r 348 3802 38410 381549 3561437 18395029 6599359 15 l 2559 4344 "
3Oct 6, 2026 02:3803,401,932,8023,343,062,00049,666,0002,117,632expected "1026025 ", got "m 143800 159300 164708 243686 250911 60680 2913 27 0 n 723856 45723 42736 42613 42783 42742 42648 42924 r 382 3802 38508 382663 3557242 18396962 6594403 13 l 2632 4351 "