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 28, 2026 00:39Victor 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 28, 2026 00:400121,385,275112,419,0001,154,0002,113,536expected "1020252 ", got "1020251 "
2Jun 28, 2026 00:400121,725,410112,834,0001,107,0002,113,536expected "1025787 ", got "1025786 "
3Jun 28, 2026 00:400121,212,069112,370,0001,124,0002,113,536expected "1025510 ", got "1025509 "
4Jun 28, 2026 00:403,431121,261,759112,135,0001,107,0002,113,536
5Jun 28, 2026 00:403,434121,130,817112,197,0001,130,0002,113,536
6Jun 28, 2026 00:403,436121,116,789112,307,0001,102,0002,113,536
7Jun 28, 2026 00:403,454121,825,360112,830,0001,166,0002,113,536
8Jun 28, 2026 00:403,482122,737,808113,731,0001,185,0002,113,536
9Jun 28, 2026 00:403,487123,186,476113,872,0001,206,0002,113,536