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 listOct 12, 2026 20:32janwwwjanwwwError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 19:19Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 19:210101,863,82884,077,0007,370,0002,117,632expected "2108493 ", got "1862733 "
2Oct 15, 2026 19:210102,516,38884,610,0007,442,0002,117,632expected "2108544 ", got "1862784 "
3Oct 15, 2026 19:21029,010,32717,412,0001,124,0002,113,536expected "275979 ", got "275970 "
4Oct 12, 2026 20:334,293152,087,299140,671,0001,008,0002,113,536
5Oct 12, 2026 20:334,297152,242,188140,696,0001,132,0002,113,536
6Oct 12, 2026 20:334,299152,218,961140,847,0001,030,0002,113,536
7Oct 12, 2026 20:334,299152,375,810140,756,0001,125,0002,113,536
8Oct 12, 2026 20:334,301152,344,694140,813,0001,135,0002,113,536
9Oct 12, 2026 20:334,344153,743,481142,362,0001,018,0002,113,536
10Oct 12, 2026 20:334,358154,307,287142,832,0001,010,0002,113,536
11Oct 12, 2026 20:334,384154,989,329143,536,0001,150,0002,113,536
12Oct 12, 2026 20:334,421156,296,706144,769,0001,135,0002,113,536