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 listAug 29, 2022 15:03Bernard TeoBernard TeoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2022 15:3500000Error: expected "1020391 ", got "1020390"
2Aug 29, 2022 15:3500000Error: expected "1023397 ", got "1023396"
3Aug 29, 2022 15:1700000Error: expected "1019795 ", got "1019794"
4Aug 29, 2022 15:0300000Error: expected "1019659 ", got "1019658"
5Aug 29, 2022 15:0400000Error: expected "1021471 ", got "1021470"
6Aug 29, 2022 15:054,982232,303,169164,407,25302,301,952
7Aug 29, 2022 15:064,998231,844,835164,918,23802,301,952
8Aug 29, 2022 15:055,004227,592,266165,124,07502,174,976
9Aug 29, 2022 15:355,019231,732,035165,629,76202,301,952
10Aug 29, 2022 15:055,020236,993,736165,671,58502,293,760
11Aug 29, 2022 15:065,021233,890,295165,693,40702,301,952
12Aug 29, 2022 15:355,021227,729,370165,708,23302,301,952
13Aug 29, 2022 15:035,023223,458,322165,750,47102,174,976
14Aug 29, 2022 15:065,023219,894,786165,760,40802,297,856
15Aug 29, 2022 15:065,023239,973,022165,768,61402,301,952
16Aug 29, 2022 15:055,025235,792,872165,836,23602,297,856
17Aug 29, 2022 15:065,027230,888,874165,885,38902,301,952
18Aug 29, 2022 15:035,027224,873,270165,899,82202,289,664
19Aug 29, 2022 15:065,029225,724,894165,959,08602,297,856
20Aug 29, 2022 15:065,030228,210,114165,976,48302,297,856
21Aug 29, 2022 15:045,036224,860,444166,197,19502,289,664
22Aug 29, 2022 15:035,038225,407,579166,260,05202,174,976
23Aug 29, 2022 15:055,040229,065,423166,315,31202,297,856
24Aug 29, 2022 15:035,041242,235,525166,368,24002,301,952
25Aug 29, 2022 15:045,043236,379,473166,417,74802,297,856
26Aug 29, 2022 15:045,051229,878,878166,668,70002,297,856
27Aug 29, 2022 15:355,052238,845,987166,709,66402,293,760
28Aug 29, 2022 15:065,061232,748,341167,000,90902,301,952
29Aug 29, 2022 15:065,065233,462,231167,137,74002,301,952
30Aug 29, 2022 15:055,095227,844,163168,147,35102,289,664
31Aug 29, 2022 15:035,098228,598,252168,241,82402,301,952
32Aug 29, 2022 15:065,109227,949,515168,582,97602,301,952
33Aug 29, 2022 15:035,110239,028,431168,640,24302,293,760
34Aug 29, 2022 15:035,110240,333,681168,637,45002,306,048
35Aug 29, 2022 15:065,111243,166,695168,671,28102,297,856
36Aug 29, 2022 15:175,112242,872,681168,694,43102,301,952
37Aug 29, 2022 15:055,112245,458,302168,708,47302,293,760
38Aug 29, 2022 15:035,112234,424,176168,690,24802,297,856
39Aug 29, 2022 15:355,114239,831,713168,757,52602,297,856
40Aug 29, 2022 15:175,115236,007,464168,781,40902,293,760
41Aug 29, 2022 15:175,116228,314,438168,835,43502,289,664
42Aug 29, 2022 15:355,118237,360,341168,904,28202,293,760
43Aug 29, 2022 15:065,121234,371,980168,977,37402,297,856
44Aug 29, 2022 15:055,124230,724,886169,106,32002,301,952
45Aug 29, 2022 15:055,148247,830,726169,900,37002,301,952
46Aug 29, 2022 15:035,191252,409,749171,301,60902,297,856
47Aug 29, 2022 15:355,197246,498,500171,499,60602,174,976