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:34Karthik 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:3402,668,693,7332,617,635,00041,626,0002,117,632expected "1022857 ", got "n 300127272 lines 30000000 uq 1022857 mx 75 cr 0 |len 0 2652 171336 2091108 2303704 2313568 2315418 2303675 2303729 2320180 2317061 2312669 2313735 2319027 2307927 2304211 0 0 |ulen 0 65 4347 69878 78839 79274 79038 78987 7866...
2Oct 6, 2026 02:3402,643,662,0632,592,433,00042,088,0002,117,632expected "1020861 ", got "n 300334645 lines 30000000 uq 1020861 mx 75 cr 0 |len 0 2540 170953 2061145 2310227 2315913 2306591 2317800 2318086 2314086 2322294 2300342 2308089 2313916 2324265 2313753 0 0 |ulen 0 66 4343 69006 78709 79099 78979 78939 7911...
3Oct 6, 2026 02:3402,661,885,2082,610,101,00042,506,0002,117,632expected "1024190 ", got "n 300404266 lines 30000000 uq 1024190 mx 75 cr 0 |len 0 2669 169773 2055544 2301589 2332216 2302623 2312739 2312004 2316797 2321464 2319858 2304867 2307545 2318380 2321932 0 0 |ulen 0 66 4344 69087 78831 79715 78794 79327 7911...