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 19:47Joad 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 19:4700000Error: expected "1018931 ", got "1018930 "
2May 12, 2024 19:4710,379401,338,500342,501,62602,232,320
3May 12, 2024 19:4710,400414,640,202343,206,95902,220,032
4May 12, 2024 19:4710,469406,524,266345,480,16102,232,320
5May 12, 2024 19:4712,076427,600,318341,582,00056,930,0002,318,336
6May 12, 2024 19:4712,109421,372,759342,666,00056,944,0002,428,928
7May 12, 2024 19:4712,211425,726,789345,963,00056,993,0002,433,024
8May 12, 2024 19:4712,235430,224,001344,796,00058,965,0002,420,736
9May 12, 2024 19:4712,400436,726,217353,163,00056,025,0002,433,024
10May 12, 2024 19:4712,562436,786,047355,618,00058,936,0002,490,368
11May 12, 2024 19:4712,627442,308,869357,722,00058,954,0002,510,848
12May 12, 2024 19:4712,681440,636,531358,551,00059,924,0002,433,024
13May 12, 2024 19:4713,672480,055,681394,276,00056,895,0002,392,064