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 listApr 26, 2026 20:29Alexander KrivolapovAlexander KrivolapovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 20:300724,200,712621,525,00083,935,0002,531,328expected "1026835 ", got "1026838 "
2Apr 26, 2026 20:300721,830,025617,266,00083,900,0002,543,616expected "1024045 ", got "1024044 "
3Apr 26, 2026 20:3021,200721,824,791620,664,00078,957,0002,531,328
4Apr 26, 2026 20:3021,216719,808,055602,274,00097,882,0002,334,720
5Apr 26, 2026 20:3021,244718,927,264614,170,00086,882,0002,379,776
6Apr 26, 2026 20:3021,257725,921,074611,570,00089,936,0002,363,392
7Apr 26, 2026 20:3021,326725,165,336620,803,00082,973,0002,359,296
8Apr 26, 2026 20:3021,351726,850,205630,649,00073,958,0002,535,424
9Apr 26, 2026 20:3021,368724,677,592608,265,00096,883,0002,560,000