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:08Bernard 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:0800000Error: expected "1019599 ", got "1019598"
2Aug 26, 2022 12:0800000Error: expected "1022499 ", got "1022498"
3Aug 26, 2022 12:1110,755426,704,729354,914,68402,281,472
4Aug 26, 2022 12:1110,791420,813,126356,110,30102,285,568
5Aug 26, 2022 12:2310,822423,767,538357,136,78002,281,472
6Aug 26, 2022 12:2410,830425,443,518357,385,91902,277,376
7Aug 26, 2022 12:2410,834426,924,836357,518,51602,285,568
8Aug 26, 2022 12:2310,850421,485,994358,056,55002,273,280
9Aug 26, 2022 12:2410,866429,533,060358,573,65102,285,568
10Aug 26, 2022 12:1110,898420,332,780359,647,02502,285,568
11Aug 26, 2022 12:2310,983421,215,239362,440,92602,289,664