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 26, 2022 12:30Bernard 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 26, 2022 12:3000000Error: expected "1023306 ", got "1023305"
2Aug 26, 2022 12:3000000Error: expected "1023741 ", got "1023740"
3Aug 26, 2022 12:3100000Error: expected "1022585 ", got "1022584"
4Aug 26, 2022 12:3200000Error: expected "1019996 ", got "1019994"
5Aug 26, 2022 12:3210,066393,173,963332,172,13402,289,664
6Aug 27, 2022 13:2510,093406,165,719333,072,40202,281,472
7Aug 26, 2022 12:3210,097391,297,732333,203,84902,281,472
8Aug 27, 2022 13:2510,100393,687,832333,307,50002,281,472
9Aug 27, 2022 13:2510,104391,981,626333,432,37102,281,472
10Aug 27, 2022 13:2510,132385,854,498334,341,08902,273,280
11Aug 27, 2022 13:2510,145414,478,850334,777,00602,269,184
12Aug 26, 2022 12:3210,197402,002,260336,507,12502,285,568
13Aug 27, 2022 13:2510,980424,159,967362,336,38402,277,376