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 17, 2024 10:15Joad 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 17, 2024 10:1300000Error: expected "1021070 ", got "1021318 "stderr
2Sep 17, 2024 10:1700000Error: expected "1024485 ", got "1024647 "stderr
3Sep 17, 2024 10:144,975186,133,705151,166,00013,014,0002,371,584
4Sep 17, 2024 10:144,985187,757,895149,559,00014,955,0002,461,696
5Sep 17, 2024 10:145,000194,200,493150,012,00015,001,0002,338,816
6Sep 17, 2024 10:145,018196,670,956151,620,00013,965,0002,461,696
7Sep 17, 2024 10:145,043198,908,002154,389,00012,030,0002,326,528
8Sep 17, 2024 10:155,047196,933,011152,604,00013,963,0002,334,720
9Sep 17, 2024 10:145,151196,000,660154,972,00014,997,0002,465,792
10Sep 17, 2024 10:155,327201,050,004164,791,00010,986,0002,330,624
11Sep 17, 2024 10:145,348200,677,403160,539,00015,954,0002,334,720
12Sep 17, 2024 10:145,358201,603,379162,841,00013,986,0002,338,816
13Sep 17, 2024 10:145,363201,279,320162,996,00013,999,0002,465,792
14Sep 17, 2024 10:155,959222,926,468183,665,00012,976,0002,457,600