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 listJun 18, 2024 04:12matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 18, 2024 04:1500000Error: expected "1022979 ", got "1022978 "
2Jun 18, 2024 04:1900000Error: expected "1022215 ", got "1022212 "
3Jun 18, 2024 04:1800000Error: expected "1023677 ", got "1023676 "
4Jun 18, 2024 04:1800000Error: expected "1022999 ", got "1022998 "
5Jun 18, 2024 04:1800000Error: expected "1023652 ", got "1023649 "
6Jun 18, 2024 04:1700000Error: expected "1025690 ", got "1025688 "
7Jun 18, 2024 04:1700000Error: expected "1025086 ", got "1025085 "
8Jun 18, 2024 04:1600000Error: expected "1023224 ", got "1023223 "
9Jun 18, 2024 04:1600000Error: expected "1017967 ", got "1017965 "
10Jun 18, 2024 04:1200000Error: expected "1019223 ", got "1019221 "
11Jun 18, 2024 04:1500000Error: expected "1023209 ", got "1023201 "
12Jun 18, 2024 04:1400000Error: expected "1025730 ", got "1025729 "
13Jun 18, 2024 04:1400000Error: expected "1021430 ", got "1021429 "
14Jun 18, 2024 04:1400000Error: expected "1023048 ", got "1023046 "
15Jun 18, 2024 04:1300000Error: expected "1023117 ", got "1023116 "
16Jun 18, 2024 04:1300000Error: expected "1021408 ", got "1021407 "
17Jun 18, 2024 04:1200000Error: expected "1019521 ", got "1019518 "