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 23:30Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 23:310165,685,667155,835,0001,883,0002,113,536expected "1019796 ", got "1019795 "
2Jun 27, 2026 23:314,751165,045,450154,927,0001,869,0002,113,536
3Jun 27, 2026 23:314,753164,665,059155,027,0001,841,0002,113,536
4Jun 27, 2026 23:314,760164,830,187155,215,0001,884,0002,113,536
5Jun 27, 2026 23:314,760165,099,933155,293,0001,815,0002,113,536
6Jun 27, 2026 23:314,789165,777,654156,217,0001,834,0002,113,536
7Jun 27, 2026 23:314,800166,395,072156,502,0001,904,0002,113,536
8Jun 27, 2026 23:314,818166,833,422157,132,0001,874,0002,113,536
9Jun 27, 2026 23:314,820166,892,408157,261,0001,810,0002,113,536