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 10:06Victor 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 10:070119,567,845110,061,0001,176,0002,113,536expected "1023549 ", got "1023548 "
2Jun 28, 2026 10:073,370119,238,586110,046,0001,183,0002,113,536
3Jun 28, 2026 10:073,370119,289,985110,041,0001,183,0002,113,536
4Jun 28, 2026 10:073,372119,278,465110,137,0001,156,0002,113,536
5Jun 28, 2026 10:073,373119,013,767110,168,0001,169,0002,113,536
6Jun 28, 2026 10:073,376119,188,652110,175,0001,241,0002,113,536
7Jun 28, 2026 10:073,377119,678,820110,288,0001,177,0002,113,536
8Jun 28, 2026 10:073,377119,727,525110,126,0001,342,0002,113,536
9Jun 28, 2026 10:073,389119,877,983110,642,0001,195,0002,113,536