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 listJun 27, 2026 22:32Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 14:49Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 14:51020,368,1269,768,0001,215,0002,113,536expected "67333 ", got "61820 "
2Oct 31, 2026 14:5104,320,583,3634,309,895,0001,177,0002,113,536expected "2108040 ", got "1763516 "
3Oct 31, 2026 14:5115614,404,9143,856,0001,311,0002,117,632
4Jun 27, 2026 22:323,317117,235,191108,387,0001,094,0002,113,536
5Jun 27, 2026 22:323,321117,416,698108,507,0001,104,0002,113,536
6Jun 27, 2026 22:323,322117,324,086108,550,0001,098,0002,113,536
7Jun 27, 2026 22:323,326117,621,137108,609,0001,149,0002,113,536
8Jun 27, 2026 22:323,328117,720,280108,727,0001,124,0002,113,536
9Jun 27, 2026 22:323,329117,631,139108,709,0001,162,0002,113,536
10Jun 27, 2026 22:323,329117,599,344108,757,0001,107,0002,113,536
11Jun 27, 2026 22:323,335118,067,145108,955,0001,113,0002,113,536
12Jun 27, 2026 22:323,341118,055,030109,096,0001,177,0002,113,536