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 20, 2026 04:24Victor 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 20, 2026 04:250266,244,527255,102,0003,165,0002,129,920expected "1023748 ", got "1023747 "
2Jun 20, 2026 04:257,541256,768,071245,717,0003,138,0002,129,920
3Jun 20, 2026 04:257,550257,192,466246,023,0003,156,0002,129,920
4Jun 20, 2026 04:257,571257,764,485246,730,0003,136,0002,129,920
5Jun 20, 2026 04:257,598258,746,082247,633,0003,132,0002,129,920
6Jun 20, 2026 04:257,618259,282,718248,252,0003,146,0002,129,920
7Jun 20, 2026 04:257,655260,870,215249,462,0003,157,0002,129,920
8Jun 20, 2026 04:257,734263,263,438252,091,0003,161,0002,129,920
9Jun 20, 2026 04:257,774264,777,638253,428,0003,140,0002,129,920