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 17:32Victor 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 17:330163,128,936118,915,00036,210,0002,113,536expected "1024365 ", got "1024364 "
2Jun 27, 2026 17:334,673162,110,314118,349,00035,875,0002,113,536
3Jun 27, 2026 17:334,679162,183,821117,608,00036,830,0002,113,536
4Jun 27, 2026 17:334,680162,300,143118,313,00036,134,0002,113,536
5Jun 27, 2026 17:334,693162,679,300118,126,00036,743,0002,113,536
6Jun 27, 2026 17:334,703163,167,259118,224,00036,985,0002,113,536
7Jun 27, 2026 17:334,706163,368,487117,955,00037,351,0002,113,536
8Jun 27, 2026 17:334,725164,213,798119,898,00036,041,0002,113,536
9Jun 27, 2026 17:334,728163,816,896119,139,00036,898,0002,113,536