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 8, 2021 20:07Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2021 20:0700000Error: expected "1041232 ", got "1041231 "
2Jun 8, 2021 20:0700000Error: expected "1042268 ", got "1042267 "
3Jun 8, 2021 20:0700000Error: expected "1038176 ", got "1038175 "
4Jun 8, 2021 20:0700000Error: expected "1037075 ", got "1037074 "
5Jun 8, 2021 20:0800000Error: expected "1040944 ", got "1040941 "
6Jun 8, 2021 20:089,394371,359,331310,008,92102,273,280
7Jun 8, 2021 20:089,433393,421,628311,292,09602,273,280
8Jun 8, 2021 20:089,443390,620,441311,634,97802,277,376
9Jun 8, 2021 20:089,457394,623,366312,074,08902,281,472
10Jun 8, 2021 20:089,555378,396,672315,309,00502,281,472
11Jun 8, 2021 20:089,666397,101,963318,973,70702,285,568