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 22, 2026 22:00Victor 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 22, 2026 22:010168,927,165124,136,00036,781,0002,113,536expected "1019704 ", got "1019703 "
2Jun 22, 2026 22:010169,330,769124,114,00037,662,0002,113,536expected "1023013 ", got "1023012 "
3Jun 22, 2026 22:014,874168,648,597123,993,00036,876,0002,113,536
4Jun 22, 2026 22:014,876168,505,567123,443,00037,496,0002,113,536
5Jun 22, 2026 22:014,887168,830,278124,492,00036,795,0002,113,536
6Jun 22, 2026 22:014,888169,243,176124,607,00036,718,0002,113,536
7Jun 22, 2026 22:014,893169,095,846123,870,00037,611,0002,113,536
8Jun 22, 2026 22:014,899169,733,928123,762,00037,925,0002,113,536
9Jun 22, 2026 22:014,921171,811,576124,772,00037,623,0002,113,536