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:02zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 10:57Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 10:59010,942,1201,043,0002,138,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 10:59011,265,7311,045,0002,158,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 10:59010,955,7201,041,0002,107,0002,121,728expected "16384 ", got "349 "stderr
4Jan 2, 2026 23:023,116126,812,333100,830,0001,996,0002,506,752
5Jan 2, 2026 23:023,125127,986,439102,124,0001,001,0002,420,736
6Jan 2, 2026 23:023,139131,915,480102,593,0001,005,0002,535,424
7Jan 2, 2026 23:023,177129,031,907103,857,000998,0002,420,736
8Jan 2, 2026 23:023,214131,434,177103,058,0003,001,0002,535,424
9Jan 2, 2026 23:023,231133,458,913105,618,0001,005,0002,441,216
10Jan 2, 2026 23:023,291132,844,865107,600,0001,005,0002,506,752
11Jan 2, 2026 23:023,301128,437,273106,950,0001,999,0002,420,736
12Jan 2, 2026 23:023,319134,105,477107,511,0002,009,0002,535,424