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 31, 2022 16:20Bernard 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 31, 2022 16:3600000Error: expected "1024640 ", got "1024639"
2Aug 31, 2022 16:3500000Error: expected "1020787 ", got "1020786"
3Aug 31, 2022 16:3500000Error: expected "1018906 ", got "1018905"
4Aug 31, 2022 16:3200000Error: expected "1022065 ", got "1022064"
5Aug 31, 2022 16:3100000Error: expected "1025396 ", got "1025395"
6Aug 31, 2022 16:2000000Error: expected "1025695 ", got "1025693"
7Aug 31, 2022 16:293,340180,175,941110,227,81802,297,856
8Aug 31, 2022 16:353,351187,489,344110,570,87802,297,856
9Aug 31, 2022 16:293,357168,518,059110,764,57002,297,856
10Aug 31, 2022 16:293,360176,400,774110,887,79902,289,664
11Aug 31, 2022 16:353,364174,114,921110,998,61702,297,856
12Aug 31, 2022 16:223,375176,034,416111,387,41602,297,856
13Aug 31, 2022 16:223,382173,005,127111,601,09202,285,568
14Aug 31, 2022 16:323,391191,526,861111,893,63602,301,952
15Aug 31, 2022 16:323,396171,285,121112,073,17502,289,664
16Aug 31, 2022 16:323,405177,587,037112,352,24502,289,664
17Aug 31, 2022 16:223,406173,655,863112,401,50302,293,760
18Aug 31, 2022 16:203,412181,903,173112,600,77102,252,800
19Aug 31, 2022 16:203,418175,603,805112,805,06802,297,856
20Aug 31, 2022 16:203,421181,504,641112,908,38002,293,760
21Aug 31, 2022 16:353,531181,734,755116,531,75102,293,760