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 listAug 29, 2022 15:39Bernard TeoBernard TeoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2022 15:4600000Error: expected "1024039 ", got "1024038"
2Aug 29, 2022 15:4400000Error: expected "1023461 ", got "1023460"
3Aug 29, 2022 15:4400000Error: expected "1026822 ", got "1026821"
4Aug 29, 2022 15:3900000Error: expected "1021864 ", got "1021863"
5Aug 29, 2022 15:3900000Error: expected "1022300 ", got "1022299"
6Aug 29, 2022 15:394,854230,809,069160,196,35602,297,856
7Aug 29, 2022 15:454,859227,987,322160,361,72002,301,952
8Aug 29, 2022 15:444,878229,862,047160,958,41802,297,856
9Aug 29, 2022 15:464,879215,915,845161,006,72102,301,952
10Aug 29, 2022 15:394,880222,104,994161,048,04902,306,048
11Aug 29, 2022 15:444,883228,249,386161,153,04402,297,856
12Aug 29, 2022 15:444,890226,265,484161,359,30702,301,952
13Aug 29, 2022 15:464,892231,576,181161,432,99002,293,760
14Aug 29, 2022 15:444,896224,340,327161,553,61302,293,760
15Aug 29, 2022 15:394,900217,619,139161,698,51302,301,952
16Aug 29, 2022 15:454,900225,213,152161,700,96102,285,568
17Aug 29, 2022 15:394,902221,337,523161,752,34102,297,856
18Aug 29, 2022 15:464,905225,114,546161,877,62902,256,896
19Aug 29, 2022 15:464,905222,419,286161,875,77802,301,952
20Aug 29, 2022 15:464,908220,099,060161,957,44802,297,856
21Aug 29, 2022 15:394,913221,723,366162,141,23702,301,952
22Aug 29, 2022 15:394,918220,354,170162,307,75902,289,664
23Aug 29, 2022 15:444,927224,084,936162,579,45902,256,896
24Aug 29, 2022 15:394,930249,166,715162,705,86802,301,952
25Aug 29, 2022 15:444,944230,552,424163,144,67602,174,976
26Aug 29, 2022 15:464,947232,129,366163,234,98102,293,760
27Aug 29, 2022 15:394,951225,931,541163,388,90802,289,664
28Aug 29, 2022 15:394,953221,387,417163,464,80102,301,952
29Aug 29, 2022 15:444,981227,552,625164,356,58202,289,664
30Aug 29, 2022 15:464,985220,463,578164,489,01702,289,664
31Aug 29, 2022 15:444,995222,235,499164,846,96402,179,072
32Aug 29, 2022 15:464,999224,366,526164,969,62402,252,800
33Aug 29, 2022 15:445,121234,796,039169,001,59302,301,952
34Aug 29, 2022 15:455,153234,795,758170,055,52602,297,856
35Aug 29, 2022 15:465,186229,559,080171,145,79802,179,072