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 23, 2026 15:54Rajarshi BasuRajarshi BasuError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 15:570117,882,048104,678,0003,357,0002,117,632expected "1026892 ", got "1026890 "stderr
2Jun 23, 2026 15:570119,961,869107,100,0003,258,0002,117,632expected "1024225 ", got "1024224 "stderr
3Jun 23, 2026 15:570116,622,678104,015,0003,361,0002,117,632expected "1023000 ", got "1022999 "stderr
4Jun 23, 2026 15:573,279117,881,933104,924,0003,292,0002,117,632stderr
5Jun 23, 2026 15:573,284118,178,118104,994,0003,407,0002,117,632stderr
6Jun 23, 2026 15:573,285118,115,771105,044,0003,386,0002,117,632stderr
7Jun 23, 2026 15:573,286118,188,971105,035,0003,423,0002,117,632stderr
8Jun 23, 2026 15:573,288118,246,865105,195,0003,310,0002,117,632stderr
9Jun 23, 2026 15:573,290118,226,538105,218,0003,356,0002,117,632stderr