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 listSep 4, 2026 07:00Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 07:010104,796,84594,100,0002,119,0002,117,632expected "1021894 ", got "1021893 "stderr
2Sep 4, 2026 07:012,866103,151,88692,513,0002,097,0002,117,632stderr
3Sep 4, 2026 07:012,874103,350,65892,795,0002,061,0002,117,632stderr
4Sep 4, 2026 07:012,878103,511,40992,903,0002,096,0002,117,632stderr
5Sep 4, 2026 07:012,892103,946,25893,337,0002,109,0002,117,632stderr
6Sep 4, 2026 07:012,895103,989,55893,464,0002,083,0002,117,632stderr
7Sep 4, 2026 07:012,899104,238,89793,595,0002,100,0002,117,632stderr
8Sep 4, 2026 07:012,901104,140,99793,657,0002,106,0002,117,632stderr
9Sep 4, 2026 07:012,930105,138,63194,594,0002,101,0002,117,632stderr