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 listJan 8, 2026 19:43Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:41Tomislav Tunkovic25.61CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:430324,270,676310,854,0003,284,0002,117,632expected "2919919 ", got "2919549 "
2Sep 9, 2026 08:430324,171,231311,037,0003,011,0002,117,632expected "2919943 ", got "2919588 "
3Sep 9, 2026 08:430325,832,944312,605,0003,043,0002,117,632expected "2919926 ", got "2919571 "
4Jan 8, 2026 19:539,417339,636,402307,776,0002,997,0002,375,680
5Jan 8, 2026 19:439,477339,052,099307,732,0004,995,0002,359,296
6Jan 8, 2026 19:539,478339,156,059309,776,0002,997,0002,486,272
7Jan 8, 2026 19:439,541343,817,456310,852,0003,998,0002,420,736
8Jan 8, 2026 19:539,728353,444,102317,017,0004,000,0002,383,872
9Jan 8, 2026 19:439,775354,004,165317,584,0004,993,0002,510,848