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 listMar 16, 2026 22:43Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 17:37Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 17:440373,329,351355,795,0006,705,0002,113,536expected "2906608 ", got "1990525 "
2Oct 31, 2026 17:44067,781,75750,681,0006,423,0002,113,536expected "335201 ", got "281384 "
3Oct 31, 2026 17:440376,038,746358,569,0006,692,0002,113,536expected "2907772 ", got "1990582 "
4Mar 16, 2026 22:4328,676974,502,552939,326,0006,994,0002,367,488
5Mar 16, 2026 22:4328,735978,113,478939,261,0008,992,0002,359,296
6Mar 16, 2026 22:4328,856981,496,354943,268,0008,993,0002,490,368
7Mar 16, 2026 22:4328,973980,354,193945,128,00010,989,0002,363,392
8Mar 16, 2026 22:4328,983980,876,788946,436,0009,994,0002,449,408
9Mar 16, 2026 22:4329,068987,852,250950,267,0008,993,0002,490,368
10Mar 16, 2026 22:4329,292994,165,873959,641,0006,997,0002,478,080
11Mar 16, 2026 22:4330,5211,041,115,080999,197,0008,001,0002,273,280
12Mar 16, 2026 22:4330,8501,041,825,0551,009,062,0008,991,0002,363,392