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 2, 2026 23:06zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 11:40Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 11:40010,912,6021,039,0002,143,0002,121,728expected "16384 ", got "32 "stderr
2Jul 4, 2026 11:40012,420,5791,039,0002,170,0002,121,728expected "16384 ", got "32 "stderr
3Jul 4, 2026 11:40010,967,2461,041,0002,174,0002,121,728expected "16384 ", got "32 "stderr
4Jan 2, 2026 23:063,137125,089,503103,525,00002,535,424
5Jan 2, 2026 23:063,195134,561,578103,440,0002,008,0002,416,640
6Jan 2, 2026 23:063,206134,123,201103,801,0001,996,0002,420,736
7Jan 2, 2026 23:063,230133,308,580105,575,0001,005,0002,420,736
8Jan 2, 2026 23:063,243126,794,697105,009,0002,000,0002,412,544
9Jan 2, 2026 23:063,254134,217,984104,371,0003,010,0002,416,640
10Jan 2, 2026 23:063,296134,583,461108,767,00002,535,424
11Jan 2, 2026 23:063,308128,348,197106,162,0003,004,0002,412,544
12Jan 2, 2026 23:063,326137,080,046107,775,0001,995,0002,273,280