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 21, 2024 18:11Joad 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 21, 2024 18:1000000Error: expected "1020998 ", got "1020581 "
2May 21, 2024 18:119,160376,037,168302,281,70702,240,512
3May 21, 2024 18:119,187360,169,712303,171,91802,240,512
4May 21, 2024 18:119,343371,977,648308,314,54202,240,512
5May 21, 2024 18:1110,886388,680,039300,350,00058,872,0002,428,928
6May 21, 2024 18:1111,061387,941,030306,002,00059,000,0002,416,640
7May 21, 2024 18:1111,427404,115,918319,085,00058,015,0002,277,376
8May 21, 2024 18:1111,488406,322,672321,094,00058,017,0002,428,928
9May 21, 2024 18:1111,532405,811,615321,630,00058,932,0002,326,528
10May 21, 2024 18:1111,536406,382,121322,735,00057,952,0002,277,376
11May 21, 2024 18:1112,145428,282,003344,815,00055,970,0002,420,736
12May 21, 2024 18:1112,199426,431,824344,631,00057,938,0002,428,928
13May 21, 2024 18:1112,589439,983,609358,510,00056,922,0002,519,040