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 29, 2022 15:42Bernard 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 29, 2022 15:4200000Error: expected "1019448 ", got "1019447"
2Aug 29, 2022 15:4200000Error: expected "1020911 ", got "1020910"
3Aug 29, 2022 15:424,857214,831,731160,267,89402,289,664
4Aug 29, 2022 15:424,896225,592,332161,564,99802,289,664
5Aug 29, 2022 15:434,907216,034,628161,927,61802,293,760
6Aug 29, 2022 15:434,917220,432,934162,262,20702,289,664
7Aug 29, 2022 15:424,954227,655,537163,476,88602,297,856
8Aug 29, 2022 15:424,984220,158,988164,471,03902,297,856
9Aug 29, 2022 15:434,985229,158,033164,495,21602,297,856
10Aug 29, 2022 15:434,987219,606,523164,578,94602,293,760
11Aug 29, 2022 15:424,997222,050,167164,892,34502,301,952
12Aug 29, 2022 15:424,999228,535,783164,953,89602,306,048
13Aug 29, 2022 15:435,010223,001,631165,342,58202,301,952
14Aug 29, 2022 15:435,013227,826,927165,440,04702,301,952