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 listSep 13, 2024 16:14Joad 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
1Sep 13, 2024 16:1400000Error: expected "1022120 ", got "1022118 "stderr
2Sep 13, 2024 16:1500000Error: expected "1023896 ", got "1023895 "stderr
3Sep 13, 2024 16:1500000Error: expected "1024121 ", got "1024120 "stderr
4Sep 17, 2024 10:0100000Error: expected "1019531 ", got "1019530 "stderr
5Sep 17, 2024 10:0200000Error: expected "1021056 ", got "1021055 "stderr
6Sep 17, 2024 10:0200000Error: expected "1024713 ", got "1024711 "stderr
7Sep 17, 2024 10:0200000Error: No answer to stdout. Died or killed?stderr
8Sep 17, 2024 10:0300000Error: expected "1021346 ", got "1021345 "stderr
9Sep 17, 2024 10:0300000Error: expected "1019197 ", got "1019196 "stderr