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 listJul 4, 2026 20:56zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 22:39Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 22:39013,387,9962,233,0003,401,0002,129,920expected "16384 ", got "14847 "stderr
2Jul 4, 2026 22:39013,492,4272,238,0003,425,0002,129,920expected "16384 ", got "14847 "stderr
3Jul 4, 2026 22:39013,369,2962,722,0002,723,0002,129,920expected "16384 ", got "14847 "stderr
4Jul 4, 2026 20:583,460122,326,062111,857,0002,344,0002,121,728stderr
5Jul 4, 2026 20:583,475122,705,441112,410,0002,275,0002,121,728stderr
6Jul 4, 2026 20:583,477122,810,843112,500,0002,259,0002,121,728stderr
7Jul 4, 2026 20:583,479122,892,368112,579,0002,248,0002,121,728stderr
8Jul 4, 2026 20:583,491124,593,296112,812,0002,391,0002,121,728stderr
9Jul 4, 2026 20:583,526124,352,944114,140,0002,235,0002,121,728stderr
10Jul 4, 2026 20:583,531124,632,393114,183,0002,354,0002,121,728stderr
11Jul 4, 2026 20:583,537125,021,477114,517,0002,212,0002,121,728stderr
12Jul 4, 2026 20:583,540124,893,745114,563,0002,257,0002,121,728stderr