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 23, 2026 17:04Victor 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
1Aug 23, 2026 17:050114,278,893104,108,0001,178,0002,117,632expected "1025150 ", got "1025149 "stderr
2Aug 23, 2026 17:053,174113,144,754103,641,0001,112,0002,117,632stderr
3Aug 23, 2026 17:053,179113,367,502103,810,0001,127,0002,117,632stderr
4Aug 23, 2026 17:053,182114,673,854103,927,0001,111,0002,117,632stderr
5Aug 23, 2026 17:053,182114,117,943103,826,0001,183,0002,117,632stderr
6Aug 23, 2026 17:053,188113,534,330104,165,0001,069,0002,117,632stderr
7Aug 23, 2026 17:053,189113,318,101104,097,0001,147,0002,117,632stderr
8Aug 23, 2026 17:053,190113,654,810104,178,0001,124,0002,117,632stderr
9Aug 23, 2026 17:053,199114,621,798104,377,0001,208,0002,117,632stderr