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 10, 2024 21:25Joad 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 10, 2024 21:2500000Error: expected "1025243 ", got "1026390 "stderr
2Jul 10, 2024 21:2600000Error: expected "1024841 ", got "1024840 "stderr
3Jul 10, 2024 21:2600000Error: expected "1024025 ", got "1025137 "stderr
4Jul 10, 2024 21:3300000Error: expected "1024209 ", got "1024206 "stderr
5Jul 10, 2024 21:3600000Error: expected "1025468 ", got "1025467 "stderr
6Jul 10, 2024 21:4600000Error: expected "1024118 ", got "1025339 "stderr
7Jul 10, 2024 21:4700000Error: expected "1026516 ", got "1026515 "stderr
8Jul 10, 2024 21:4700000Error: expected "1021853 ", got "1021851 "stderr
9Jul 10, 2024 21:4800000Error: expected "1021882 ", got "1023038 "stderr
10Jul 10, 2024 21:4800000Error: expected "1024809 ", got "1024808 "stderr
11Jul 10, 2024 21:4800000Error: expected "1023853 ", got "1023851 "stderr
12Jul 10, 2024 21:4800000Error: expected "1021265 ", got "1021264 "stderr
13Jul 10, 2024 21:4900000Error: expected "1018918 ", got "1018915 "stderr