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 listSep 25, 2024 16:10Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2024 16:0700000Error: expected "1019974 ", got "1020000 "stderr
2Sep 25, 2024 16:104,869188,720,488145,701,00014,969,0002,469,888
3Sep 25, 2024 17:204,896186,798,554147,598,00013,961,0002,334,720
4Sep 25, 2024 17:204,898190,132,736146,662,00014,965,0002,334,720
5Sep 25, 2024 16:084,901190,979,451146,745,00014,974,0002,465,792
6Sep 25, 2024 16:084,903185,131,694145,810,00015,979,0002,334,720
7Sep 25, 2024 17:204,905191,264,984150,871,00010,990,0002,461,696
8Sep 25, 2024 16:084,912185,574,295147,083,00015,008,0002,293,760
9Sep 25, 2024 16:084,914186,914,975151,153,00011,011,0002,334,720
10Sep 25, 2024 16:104,923187,954,134147,523,00014,951,0002,465,792
11Sep 25, 2024 16:104,927186,666,535145,637,00016,957,0002,465,792
12Sep 25, 2024 16:104,930189,757,702151,726,00010,980,0002,330,624
13Sep 25, 2024 17:204,933184,793,939145,823,00016,979,0002,510,848
14Sep 25, 2024 16:084,934189,731,885150,832,00011,986,0002,461,696
15Sep 25, 2024 17:204,937189,146,576148,934,00013,993,0002,334,720
16Sep 25, 2024 16:084,970193,368,284150,995,00012,999,0002,510,848
17Sep 25, 2024 17:204,975190,943,636150,162,00014,015,0002,342,912
18Sep 25, 2024 17:205,002184,367,523150,070,00015,007,0002,461,696
19Sep 25, 2024 17:205,004191,511,905153,115,00012,009,0002,338,816
20Sep 25, 2024 16:085,012195,787,622152,353,00013,030,0002,453,504
21Sep 25, 2024 16:105,017185,985,783151,602,00013,963,0002,293,760
22Sep 25, 2024 16:085,017187,747,076152,609,00012,966,0002,330,624
23Sep 25, 2024 16:085,053191,663,699153,767,00012,980,0002,334,720
24Sep 25, 2024 16:085,187194,289,397159,158,00012,011,0002,469,888
25Sep 25, 2024 17:205,204196,521,647156,746,00014,975,0002,465,792
26Sep 25, 2024 16:105,239199,785,083161,900,00010,993,0002,293,760
27Sep 25, 2024 16:105,279199,862,574161,184,00013,014,0002,334,720
28Sep 25, 2024 16:085,281202,900,565163,258,00011,017,0002,465,792
29Sep 25, 2024 16:105,282205,169,255158,285,00016,028,0002,453,504
30Sep 25, 2024 16:085,284204,057,586161,429,00012,954,0002,338,816
31Sep 25, 2024 16:105,295197,671,267160,770,00013,980,0002,338,816