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 listMar 22, 2026 02:52olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 22:57Andrew Epstein17.56CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 22:570259,137,119234,908,0003,215,0002,113,536expected "2102851 ", got "2052895 "
2Oct 15, 2026 22:570239,902,050227,954,0003,224,0002,113,536expected "2107539 ", got "2057583 "
3Oct 15, 2026 22:5714613,679,4741,190,0003,652,0002,113,536
4Mar 22, 2026 03:0310,119352,842,989327,913,0005,998,0002,338,816
5Mar 22, 2026 03:0310,120356,800,393327,977,0005,999,0002,338,816
6Mar 22, 2026 03:0310,124355,060,057329,077,0005,001,0002,338,816
7Mar 22, 2026 02:5210,138358,003,626328,564,0005,992,0002,482,176
8Mar 22, 2026 03:0310,139353,877,121332,598,0001,997,0002,338,816
9Mar 22, 2026 02:5210,149354,825,209330,919,0003,999,0002,334,720
10Mar 22, 2026 02:5210,158362,787,459330,205,0005,003,0002,289,664
11Mar 22, 2026 02:5210,160356,656,537335,269,00002,338,816
12Mar 22, 2026 03:0310,169361,450,171329,582,0005,992,0002,338,816
13Mar 22, 2026 03:0310,174359,757,362329,734,0005,995,0002,289,664
14Mar 22, 2026 02:5210,179359,206,355329,901,0005,998,0002,478,080
15Mar 22, 2026 02:5210,188365,595,159333,192,0003,001,0002,478,080
16Mar 22, 2026 02:5210,194362,092,129330,405,0005,989,0002,478,080
17Mar 22, 2026 02:5210,194368,748,200331,404,0005,006,0002,478,080
18Mar 22, 2026 03:0310,194361,316,444331,394,0005,005,0002,482,176
19Mar 22, 2026 03:0310,220365,331,739332,267,0005,004,0002,482,176
20Mar 22, 2026 02:5211,157391,197,341363,190,0005,002,0002,338,816
21Mar 22, 2026 03:0311,526403,086,376375,375,0004,991,0002,285,568