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 listAug 10, 2026 16:21C21C21Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 10, 2026 16:2302,313,060,3302,290,099,00012,673,0002,113,536expected "1020858 ", got "1020857 "
2Aug 10, 2026 16:2369,2312,294,924,5022,271,574,00013,070,0002,113,536
3Aug 10, 2026 16:2369,3792,300,410,2872,276,644,00012,887,0002,113,536
4Aug 10, 2026 16:2369,7512,312,529,6962,289,091,00012,716,0002,113,536
5Aug 10, 2026 16:2369,8822,316,345,8452,293,429,00012,682,0002,113,536
6Aug 10, 2026 16:2369,8912,316,907,4502,293,846,00012,574,0002,113,536
7Aug 10, 2026 16:2370,1632,325,738,6052,302,840,00012,547,0002,113,536
8Aug 10, 2026 16:2370,7752,345,998,4172,323,120,00012,463,0002,113,536
9Aug 10, 2026 16:2373,7622,457,800,7442,421,462,00012,707,0002,113,536