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 18:09Victor 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 18:100175,804,185129,918,00037,866,0002,113,536expected "1023522 ", got "1023521 "
2Jun 22, 2026 18:105,066174,828,968130,348,00036,831,0002,113,536
3Jun 22, 2026 18:105,070175,034,611130,458,00036,863,0002,113,536
4Jun 22, 2026 18:105,072174,979,236130,627,00036,753,0002,113,536
5Jun 22, 2026 18:105,075175,493,778129,923,00037,565,0002,113,536
6Jun 22, 2026 18:105,079175,908,669130,771,00036,857,0002,113,536
7Jun 22, 2026 18:105,081175,528,511130,851,00036,832,0002,113,536
8Jun 22, 2026 18:105,081175,455,928130,920,00036,759,0002,113,536
9Jun 22, 2026 18:105,081175,260,253130,865,00036,838,0002,113,536