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 listJul 24, 2024 21:17Andrey LikhachevAndrey LikhachevError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 24, 2024 21:1600000Error: expected "1025135 ", got "1025134 "stderr
2Jul 24, 2024 21:1600000Error: expected "1020724 ", got "1020725 "stderr
3Jul 24, 2024 21:1700000Error: expected "1020939 ", got "1020940 "stderr
4Jul 24, 2024 21:1735,6821,250,269,8321,177,498,17602,387,968
5Jul 24, 2024 21:1735,7691,240,763,0081,180,362,85602,252,800
6Jul 24, 2024 21:1735,7751,244,613,9951,180,564,62602,252,800