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 21:47highloadLLMhighloadLLMError
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 21:500911,353,904854,810,00047,261,0002,113,536expected "1023016 ", got "1vt:1u,3myp:3cs,186o4:1ha0,1dcnf:1one,1dnyy:1p4s,1dk15:1p26,1dmvf:1p4s,1dtf3:1p6v,1dn1k:1p28,1dezs:1p13,1dnqd:1p45,1dcvb:1owo,1dlco:1p4y,1dmyh:1p3n,1dsql:1p5u "
2Jun 7, 2026 21:500907,526,369851,238,00047,188,0002,113,536expected "1021981 ", got "1y5:1t,3m3m:3ce,184iw:1hba,1dpm4:1ow2,1dqlq:1p0j,1dnge:1p8v,1dim5:1oxc,1dadk:1ogj,1dsgj:1p88,1dmyv:1p2q,1dh23:1owf,1dlsy:1p3x,1dnls:1p00,1dox6:1p1a,1dg3f:1oz1 "
3Jun 7, 2026 21:500915,177,908857,671,00047,756,0002,113,536expected "1020136 ", got "216:1u,3njq:3cn,1808d:1h05,1dly8:1otr,1djz5:1ooa,1dkgx:1osg,1doup:1pbf,1dpwt:1oyc,1dm7v:1owi,1dsz8:1p1c,1dpgg:1ox0,1dne4:1p51,1devd:1os6,1dlm1:1op5,1dcna:1op4 "