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 listOct 3, 2024 12:02Joad 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
1Oct 3, 2024 12:0200000Error: expected "1022118 ", got "1022107 "stderr
2Oct 3, 2024 12:0300000Error: expected "1021754 ", got "1021714 "stderr
3Oct 3, 2024 12:0300000Error: expected "1018923 ", got "1018880 "stderr
4Oct 3, 2024 12:0300000Error: expected "1018471 ", got "1018455 "stderr
5Oct 3, 2024 12:0300000Error: expected "1022926 ", got "1022890 "stderr
6Oct 3, 2024 12:1700000Error: expected "1021654 ", got "1021579 "stderr
7Oct 3, 2024 12:1700000Error: expected "1024256 ", got "1024204 "stderr
8Oct 3, 2024 12:1800000Error: expected "1021818 ", got "1021750 "stderr
9Oct 3, 2024 12:1800000Error: expected "1025501 ", got "1025441 "stderr
10Oct 3, 2024 12:1800000Error: expected "1024633 ", got "1024546 "stderr
11Oct 3, 2024 12:1800000Error: expected "1019080 ", got "1019075 "stderr
12Oct 3, 2024 12:3600000Error: expected "1026189 ", got "1026132 "stderr