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 listDec 18, 2023 16:18matsuoka-601matsuoka-601Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 18, 2023 16:2300000Error: expected "1022836 ", got "1022835 "stderr
2Dec 18, 2023 16:3000000Error: expected "1019869 ", got "1019866 "stderr
3Dec 18, 2023 16:2900000Error: expected "1023922 ", got "1023921 "stderr
4Dec 18, 2023 16:2800000Error: expected "1024777 ", got "1024775 "stderr
5Dec 18, 2023 16:2800000Error: expected "1026396 ", got "1026394 "stderr
6Dec 18, 2023 16:2700000Error: expected "1023169 ", got "1023166 "stderr
7Dec 18, 2023 16:2700000Error: expected "1018654 ", got "1018653 "stderr
8Dec 18, 2023 16:2400000Error: expected "1018358 ", got "1018356 "stderr
9Dec 18, 2023 16:2400000Error: expected "1018089 ", got "1018087 "stderr
10Dec 18, 2023 16:1800000Error: expected "1021113 ", got "1021111 "stderr
11Dec 18, 2023 16:2200000Error: expected "1021587 ", got "1021583 "stderr
12Dec 18, 2023 16:2200000Error: expected "1019958 ", got "1019956 "stderr
13Dec 18, 2023 16:2100000Error: expected "1019451 ", got "1019449 "stderr
14Dec 18, 2023 16:2100000Error: expected "1019717 ", got "1019716 "stderr
15Dec 18, 2023 16:2000000Error: expected "1019355 ", got "1019354 "stderr
16Dec 18, 2023 16:1900000Error: expected "1021649 ", got "1021647 "stderr
17Dec 18, 2023 16:1800000Error: expected "1024116 ", got "1024114 "stderr