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 30, 2022 18:18Bernard 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 30, 2022 18:1800000Error: expected "1020732 ", got "1020730"
2Aug 30, 2022 18:184,794213,144,479158,193,27002,301,952
3Aug 30, 2022 18:184,813226,368,520158,822,94302,289,664
4Aug 30, 2022 18:184,833236,654,531159,476,16502,301,952
5Aug 30, 2022 18:184,833216,627,428159,476,61802,293,760
6Aug 30, 2022 18:184,841229,570,576159,737,01302,301,952
7Aug 30, 2022 18:184,847217,381,404159,941,36402,301,952
8Aug 30, 2022 18:184,870185,130,956155,731,0004,991,0002,387,968
9Aug 30, 2022 18:184,882186,766,393156,110,0005,003,0002,273,280
10Aug 30, 2022 18:184,898194,686,945157,641,0003,990,0002,387,968
11Aug 30, 2022 18:184,899188,913,786156,675,0004,989,0002,392,064
12Aug 30, 2022 18:184,900187,412,289156,721,0004,991,0002,428,928
13Aug 30, 2022 18:184,913185,888,451159,136,0003,002,0002,383,872
14Aug 30, 2022 18:184,917185,108,715157,272,0004,976,0002,338,816
15Aug 30, 2022 18:184,926187,427,649159,540,0003,010,0002,383,872
16Aug 30, 2022 18:184,939187,738,901158,997,0003,999,0002,490,368