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 24, 2026 12:02anboto1anboto1Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 24, 2026 12:030183,352,598165,747,0008,355,0002,117,632expected "1023460 ", got "1023459 "
2Jun 24, 2026 12:035,219181,901,917163,045,0009,204,0002,117,632
3Jun 24, 2026 12:035,261182,862,088164,391,0009,242,0002,117,632
4Jun 24, 2026 12:035,266183,514,006164,576,0009,208,0002,117,632
5Jun 24, 2026 12:035,286183,679,750165,203,0009,253,0002,117,632
6Jun 24, 2026 12:035,293184,421,213165,414,0009,280,0002,117,632
7Jun 24, 2026 12:035,302184,135,580165,557,0009,417,0002,117,632
8Jun 24, 2026 12:035,332185,257,843166,522,0009,465,0002,117,632
9Jun 24, 2026 12:035,346185,788,338167,070,0009,375,0002,117,632