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 20:30Victor 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:5104,312,177,1774,300,967,0001,173,0002,113,536expected "2104814 ", got "1760294 "
2Oct 31, 2026 14:5104,339,607,4964,328,606,0001,172,0002,113,536expected "2105190 ", got "1760664 "
3Oct 31, 2026 14:515211,177,07501,737,0002,117,632
4Jun 27, 2026 20:303,379119,567,041110,349,0001,161,0002,113,536
5Jun 27, 2026 20:303,383119,363,108110,486,0001,169,0002,113,536
6Jun 27, 2026 20:303,384119,802,231110,490,0001,183,0002,113,536
7Jun 27, 2026 20:303,388119,877,124110,641,0001,185,0002,113,536
8Jun 27, 2026 20:303,392119,729,676110,784,0001,169,0002,113,536
9Jun 27, 2026 20:303,395119,802,904110,872,0001,179,0002,113,536
10Jun 27, 2026 20:303,396120,358,032110,898,0001,190,0002,113,536
11Jun 27, 2026 20:303,401120,047,802111,090,0001,172,0002,113,536
12Jun 27, 2026 20:303,408120,786,199111,307,0001,179,0002,113,536