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 listJun 7, 2026 23:56anboto1anboto1Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2026 23:570376,446,069354,627,00012,076,0002,117,632expected "1019106 ", got "1019106 958704364 318620688 2312034 2311438 2316512 2329501 2314087 2315207 2317843 2304420 2319522 2299346 2321706 "
2Jun 7, 2026 23:570378,312,289356,326,00012,095,0002,117,632expected "1023706 ", got "1023706 964058096 318963348 2307388 2318014 2319284 2319876 2297015 2317002 2320563 2320322 2318760 2300508 2311565 "
3Jun 7, 2026 23:570377,477,084355,572,00012,167,0002,117,632expected "1021492 ", got "1021492 961998792 318261144 2310317 2300738 2309045 2316688 2320022 2317411 2323557 2304972 2319162 2305019 2325610 "