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 7, 2026 20:02highloadLLMhighloadLLMError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2026 20:0209,652,790878,00002,117,632expected "1023244 ", got "14:w#u1rpRGds9xho|12:Z8WQMt7trFO8|3:M9E|7:bNPcKRx|11:I*b%1ieY4bF|13:8nGd%#11B4zau|7:7Gwy110|10:KCLw0#Z%*o|10:AYYQeGpwPb|7:zTi2@*1|12:Xf4@OVIXJLtc|10:8vlUGZ25uu|12:*y9gqReXzukf|5:Qq97@|9:qtuXrj2J1|15:YlWlcWVK4xd#HRg|14:ccQHgy*w...
2Jun 7, 2026 20:0209,764,758888,00002,117,632expected "1022351 ", got "15:iqpXpjv*y%ENx0v|11:iwCADSdW9s6|6:Je#9bW|11:AjjOCKf2wEe|14:1Ayjubvq7K#oUw|9:8qLneMhdF|4:DRzZ|4:Ghy*|9:xQ3BaatdH|7:Y7Sr#Ci|15:k5#f5@%NvR2u@hX|3:nZa|14:7Y2g1nCAEUBuVG|9:dfEZuxego|3:CXB|14:ZVhcIHuHSgytDN|6:Hb7pEx|12:%eCzs54IEXt...
3Jun 7, 2026 20:0209,785,465983,00002,117,632expected "1018399 ", got "10:33bpsc2LkZ|4:XSaC|13:fjVl%tkLPc*dU|14:rVNrO9CAJEv5*N|8:6zay@P8D|11:3nwARZqlMUy|14:t9NWrx4EteOPKY|6:P0UZdv|10:Zsf%DablLb|6:#jMEqi|1:6|4:GvDo|7:L@I*DBy|8:m5uMEPhm|13:WwSvDF3Dp*pyF|14:3FWu28W9WZ1Vgf|6:kdPzMW|14:3#H64r55lG#fFw|...