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 listMay 5, 2026 13:49olliecrowolliecrowError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2026 13:49019,932,93801,729,0002,351,104expected "1024476 ", got "R SZ=300422187 V0=7051630a376f4e66 V1=4c686b706267396c V2=0a4f505a30384e0a V3=404740490a74576d V4=33610a332557432a V5=4135532372334777 V6=664e6249376e7035 V7=0a354348554c4739 "
2May 5, 2026 13:49017,497,75101,749,0002,355,200expected "1023596 ", got "R SZ=300335719 V0=4932354b62727954 V1=0a50486534402361 V2=4c706937460a4f4b V3=4656740a6d683752 V4=0a377a41540a4b44 V5=416e796942660a61 V6=6a740a7457486245 V7=0a4e6e695a464b36 "
3May 5, 2026 13:49018,737,0621,651,00002,342,912expected "1022101 ", got "R SZ=300168137 V0=0a2374692a6c4950 V1=0a5a6f536c0a6975 V2=620a705673363354 V3=66517977686a0a30 V4=6163384a3666354c V5=6662310a4f512333 V6=6e39672a75485539 V7=0a334866520a7445 "