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 17, 2024 06:09matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2024 06:0900000Error: expected "1021083 ", got "1021080 "
2Jun 17, 2024 06:1000000Error: expected "1019666 ", got "1019664 "
3Jun 17, 2024 06:1000000Error: expected "1021877 ", got "1021875 "
4Jun 17, 2024 06:1100000Error: expected "1020786 ", got "1020784 "
5Jun 17, 2024 06:1100000Error: expected "1020666 ", got "1020662 "
6Jun 17, 2024 06:1200000Error: expected "1025829 ", got "1025826 "
7Jun 17, 2024 06:1200000Error: expected "1019223 ", got "1019222 "
8Jun 18, 2024 06:3300000Error: expected "1024068 ", got "1024067 "
9Jun 17, 2024 06:124,372198,428,157144,264,24902,220,032
10Jun 17, 2024 06:124,382206,695,896144,622,33302,228,224
11Jun 17, 2024 06:124,421205,172,821145,881,49302,220,032