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 23, 2021 19:52evgenikwtevgenikwtError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 24, 2021 00:1200000Wrong answer: expected "1035625 ", got "1035624"
2May 24, 2021 00:3000000Wrong answer: expected "1041473 ", got "1041472"
3May 23, 2021 19:5249,6241,702,553,6661,637,601,95102,256,896
4May 23, 2021 19:5449,8801,706,618,7321,646,025,15302,260,992
5May 23, 2021 19:4650,0911,709,692,4961,653,017,03102,252,800
6May 23, 2021 19:5450,1131,706,089,6241,653,734,50702,256,896
7May 23, 2021 19:4650,2051,726,218,7391,656,775,03802,248,704
8May 23, 2021 19:4650,6831,729,963,3121,672,538,51502,236,416
9May 23, 2021 19:5452,0321,775,866,2221,717,055,37402,256,896
10May 23, 2021 19:5252,1011,783,783,6551,719,339,67902,244,608
11May 23, 2021 19:5252,1361,772,165,0081,720,485,71502,252,800