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 13, 2026 19:44Maya RebholzMaya RebholzError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 13, 2026 19:450775,907,861737,823,00028,744,0002,138,112expected "1020603 ", got "1020602 "
2Jun 13, 2026 19:4523,157773,539,903736,586,00027,619,0002,138,112
3Jun 13, 2026 19:4523,168774,708,540736,487,00028,074,0002,138,112
4Jun 13, 2026 19:4523,169773,922,384736,329,00028,258,0002,138,112
5Jun 13, 2026 19:4523,217775,844,928737,795,00028,369,0002,138,112
6Jun 13, 2026 19:4523,266777,102,381738,399,00029,400,0002,138,112
7Jun 13, 2026 19:4523,285777,833,929739,949,00028,478,0002,138,112
8Jun 13, 2026 19:4523,298778,147,096739,357,00029,484,0002,138,112
9Jun 13, 2026 19:4523,298778,459,305740,861,00027,991,0002,138,112