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 21, 2026 15:37Victor 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 21, 2026 15:370212,900,265166,291,00038,538,0002,113,536expected "1020364 ", got "1020363 "
2Jun 21, 2026 15:376,191211,880,567166,927,00037,408,0002,113,536
3Jun 21, 2026 15:376,198212,146,730166,046,00038,519,0002,113,536
4Jun 21, 2026 15:376,201212,121,933166,147,00038,492,0002,113,536
5Jun 21, 2026 15:376,210212,998,088166,660,00038,295,0002,113,536
6Jun 21, 2026 15:376,214212,565,743166,363,00038,714,0002,113,536
7Jun 21, 2026 15:376,236213,249,461167,499,00038,308,0002,113,536
8Jun 21, 2026 15:376,245213,542,594167,541,00038,553,0002,113,536
9Jun 21, 2026 15:376,255213,883,506167,985,00038,444,0002,113,536