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 19, 2024 04:43matsuoka-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 19, 2024 04:4400000Error: expected "1021178 ", got "1021177 "stderr
2Jun 19, 2024 04:435,791217,722,842187,112,0004,002,0002,330,624
3Jun 19, 2024 04:435,793212,957,923187,174,0004,003,0002,502,656
4Jun 19, 2024 04:435,796218,902,102188,265,0003,004,0002,367,488
5Jun 19, 2024 04:435,800221,663,320188,407,0003,006,0002,281,472
6Jun 19, 2024 04:445,809259,323,225191,695,78902,306,048
7Jun 19, 2024 04:435,817217,701,442188,958,0002,999,0002,281,472
8Jun 19, 2024 04:445,819244,784,776192,042,85902,306,048
9Jun 19, 2024 04:435,827281,845,925192,276,21802,301,952
10Jun 19, 2024 04:435,830261,283,816192,384,88702,306,048
11Jun 19, 2024 04:435,842217,007,653189,793,0002,996,0002,281,472
12Jun 19, 2024 04:435,844250,744,359192,841,33002,183,168
13Jun 19, 2024 04:445,861267,708,239193,427,30602,297,856
14Jun 19, 2024 04:435,874216,690,036189,830,0003,996,0002,363,392
15Jun 19, 2024 04:435,887218,075,902191,255,0003,004,0002,424,832
16Jun 19, 2024 04:435,887218,030,468190,266,0004,005,0002,457,600