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 listJul 15, 2024 19:33Joad 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
1Jul 15, 2024 19:3300000Error: expected "1024581 ", got "1024580 "stderr
2Jul 15, 2024 19:3300000Error: expected "1020208 ", got "1020207 "stderr
3Jul 15, 2024 19:3300000Error: expected "1025790 ", got "1025788 "stderr
4Jul 15, 2024 19:3300000Error: expected "1022936 ", got "1022930 "stderr
5Jul 15, 2024 19:3300000Error: expected "1019221 ", got "1019220 "stderr
6Jul 15, 2024 19:3300000Error: expected "1019372 ", got "1019370 "stderr
7Jul 15, 2024 19:3300000Error: expected "1020078 ", got "1020077 "stderr
8Jul 15, 2024 19:333,251192,781,450107,274,94502,224,128
9Jul 15, 2024 19:333,251175,630,665107,290,79202,228,224
10Jul 15, 2024 19:333,267166,979,402107,796,92102,232,320
11Jul 15, 2024 19:333,268179,712,921107,860,42802,232,320
12Jul 15, 2024 19:333,268169,690,591107,829,28502,232,320
13Jul 15, 2024 19:333,276176,603,703108,098,25102,224,128