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:19Yuriy 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:2000000Error: expected "1042232 ", got "1042231 "
2Jun 8, 2021 20:2000000Error: expected "1037352 ", got "1037349 "
3Jun 8, 2021 20:2000000Error: expected "1041566 ", got "1041565 "
4Jun 8, 2021 20:2100000Error: expected "1037384 ", got "1037383 "
5Jun 8, 2021 20:2100000Error: expected "1039340 ", got "1039339 "
6Jun 8, 2021 20:2100000Error: expected "1042764 ", got "1042761 "
7Jun 8, 2021 20:2200000Error: expected "1034628 ", got "1034627 "
8Jun 8, 2021 20:2200000Error: expected "1038535 ", got "1038534 "
9Jun 8, 2021 20:2300000Error: expected "1040597 ", got "1040596 "
10Jun 8, 2021 20:239,583379,945,665316,224,54002,281,472
11Jun 8, 2021 20:239,650390,805,614318,464,13102,269,184
12Jun 8, 2021 20:239,669386,742,740319,089,02702,277,376
13Jun 8, 2021 20:1917,716641,094,075584,638,60302,256,896
14Jun 8, 2021 20:1917,740647,976,421585,404,11002,252,800
15Jun 8, 2021 20:1917,847663,962,735588,966,12802,244,608