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 08:53Victor 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 08:540190,734,417145,969,00036,838,0002,113,536expected "1023481 ", got "1023480 "
2Jun 27, 2026 08:545,520189,954,716145,450,00036,737,0002,113,536
3Jun 27, 2026 08:545,523190,009,480145,517,00036,756,0002,113,536
4Jun 27, 2026 08:545,527190,516,887145,479,00036,930,0002,113,536
5Jun 27, 2026 08:545,531190,710,142145,692,00036,857,0002,113,536
6Jun 27, 2026 08:545,542190,848,904146,027,00036,871,0002,113,536
7Jun 27, 2026 08:545,542191,116,928146,277,00036,636,0002,113,536
8Jun 27, 2026 08:545,542190,996,599146,218,00036,679,0002,113,536
9Jun 27, 2026 08:545,545190,748,068147,100,00035,907,0002,113,536