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 28, 2022 08:06Bernard 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 28, 2022 08:0600000Error: expected "1022887 ", got "1022886"
2Aug 28, 2022 08:0610,439408,612,663344,489,49702,289,664
3Aug 28, 2022 08:0610,506420,750,621346,689,44602,281,472
4Aug 28, 2022 08:0610,564405,029,310348,622,36802,281,472
5Aug 28, 2022 08:0610,609410,888,178350,093,23702,281,472
6Aug 28, 2022 08:0610,639421,035,509351,085,03102,277,376
7Aug 28, 2022 08:0611,368461,229,970375,154,83702,281,472