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:32Bernard 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:3200000Error: expected "1020648 ", got "1020647"
2Aug 26, 2022 12:3600000Error: expected "1020343 ", got "1020342"
3Aug 26, 2022 13:0200000Error: expected "1019742 ", got "1019741"
4Aug 26, 2022 13:0200000Error: expected "1023637 ", got "1023636"
5Aug 26, 2022 12:3210,230397,560,247337,574,07002,285,568
6Aug 26, 2022 12:3610,249396,114,145338,212,33702,281,472
7Aug 26, 2022 12:3610,268410,922,221338,850,46602,281,472
8Aug 26, 2022 12:3210,282398,161,285339,303,82402,273,280
9Aug 26, 2022 12:3610,284411,768,181339,368,37002,281,472
10Aug 26, 2022 13:0210,296415,509,177339,757,56502,277,376
11Aug 26, 2022 13:0210,302399,429,572339,980,71502,281,472
12Aug 26, 2022 12:3210,317409,178,327340,472,08402,289,664
13Aug 26, 2022 13:0210,378399,049,430342,464,86802,277,376
14Aug 26, 2022 12:3610,386424,537,431342,737,16102,281,472
15Aug 26, 2022 12:3610,400402,557,256343,193,25802,281,472
16Aug 26, 2022 12:3610,401422,286,631343,225,50002,285,568