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 14, 2024 19:11джулисджулис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 14, 2024 19:1100000Error: expected "1024615 ", got "1024614 "stderr
2Jun 14, 2024 19:1200000Error: expected "1018656 ", got "1018655 "stderr
3Jun 14, 2024 19:1200000Error: expected "1019141 ", got "1019140 "stderr
4Jun 14, 2024 19:1600000Error: expected "1019502 ", got "1019501 "stderr
5Jun 14, 2024 19:1700000Error: expected "1025493 ", got "1025492 "stderr