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 23, 2026 00:38Victor 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 23, 2026 00:390171,579,680126,713,00036,949,0002,113,536expected "1019822 ", got "1019821 "
2Jun 23, 2026 00:394,943170,665,952126,547,00036,584,0002,113,536
3Jun 23, 2026 00:394,968171,843,127126,976,00036,978,0002,113,536
4Jun 23, 2026 00:394,974171,767,725127,247,00036,900,0002,113,536
5Jun 23, 2026 00:394,976172,237,678127,549,00036,691,0002,113,536
6Jun 23, 2026 00:394,978172,336,870127,606,00036,687,0002,113,536
7Jun 23, 2026 00:394,984172,295,463126,995,00037,499,0002,113,536
8Jun 23, 2026 00:394,986172,627,430126,794,00037,771,0002,113,536
9Jun 23, 2026 00:394,999172,544,467127,197,00037,778,0002,113,536