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 12, 2024 16:23Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 12, 2024 16:2300000Error: expected "1019892 ", got "1019889 "stderr
2May 12, 2024 16:239,849348,329,720271,017,00054,003,0002,420,736
3May 12, 2024 16:239,907350,700,171269,941,00056,987,0002,367,488
4May 12, 2024 16:2310,032360,478,307274,055,00057,011,0002,433,024
5May 12, 2024 16:2310,052357,824,232273,760,00057,949,0002,482,176
6May 12, 2024 16:2310,072361,830,039275,473,00056,891,0002,433,024
7May 12, 2024 16:2310,141356,022,124275,713,00058,938,0002,289,664
8May 12, 2024 16:2310,226363,485,514281,542,00055,909,0002,469,888
9May 12, 2024 16:2310,262363,454,331278,721,00059,940,0002,277,376
10May 12, 2024 16:2310,285366,493,994280,507,00058,896,0002,428,928
11May 12, 2024 16:2210,442398,242,667344,590,93502,224,128
12May 12, 2024 16:2210,622406,762,389350,520,74202,224,128
13May 12, 2024 16:2310,684416,230,314352,565,68302,228,224
14May 12, 2024 16:2210,687431,637,602352,687,39102,240,512
15May 12, 2024 16:2310,687410,537,008352,674,56102,228,224
16May 12, 2024 16:2310,814422,812,274356,855,53602,228,224