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 17:42anboto1anboto1Error
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 17:4201,992,156,7861,927,807,00054,985,0002,113,536expected "1024712 ", got "299983256 30000000 153456 870977 1024433 2469 170913 2076172 2317683 2322626 2311526 2318735 2317994 2329827 2318502 2296028 2295845 2294018 2314745 2312917 0 "
2Jun 7, 2026 17:4202,010,979,0931,946,847,00054,834,0002,113,536expected "1021615 ", got "300337026 30000000 152352 868974 1021326 2648 170092 2063127 2317953 2303602 2305556 2317826 2307575 2321010 2321530 2312506 2309420 2327435 2311178 2308542 0 "
3Jun 7, 2026 17:4202,017,250,2471,953,170,00054,687,0002,113,536expected "1025133 ", got "300407549 30000000 152196 872615 1024811 2557 170591 2052764 2299240 2319427 2317136 2320046 2309338 2322923 2320015 2308381 2302999 2319214 2321372 2313997 0 "