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 26, 2024 21:00Andrey LikhachevAndrey LikhachevError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 26, 2024 21:0000000Error: expected "1023181 ", got "1023179 "stderr
2Jul 26, 2024 21:0100000Error: expected "1021323 ", got "1021321 "stderr
3Jul 26, 2024 21:0100000Error: expected "1020807 ", got "1020806 "stderr
4Jul 26, 2024 21:0200000Error: expected "1022599 ", got "1022597 "stderr
5Jul 26, 2024 21:1000000Error: expected "1023563 ", got "1023560 "stderr
6Jul 26, 2024 21:1200000Error: expected "1026964 ", got "1026963 "stderr
7Jul 26, 2024 21:1300000Error: expected "1022028 ", got "1022027 "stderr
8Jul 26, 2024 21:1400000Error: expected "1021822 ", got "1021821 "stderr
9Jul 26, 2024 21:1400000Error: expected "1022950 ", got "1022948 "stderr
10Jul 26, 2024 21:1900000Error: expected "1022941 ", got "1022940 "stderr