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 21, 2026 03:01Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 15:57Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 15:58056,194,20044,232,0001,337,0002,113,536expected "2905419 ", got "445003 "
2Oct 31, 2026 15:58056,654,65744,723,0001,325,0002,113,536expected "2903304 ", got "444931 "
3Oct 31, 2026 15:58057,826,75544,198,0001,334,0002,113,536expected "2903766 ", got "446212 "
4Mar 21, 2026 03:017,300269,251,683236,914,0003,998,0002,392,064
5Mar 21, 2026 03:017,315268,398,174238,396,0003,004,0002,392,064
6Mar 21, 2026 03:017,321270,355,334237,615,0003,993,0002,396,160
7Mar 21, 2026 03:017,328267,939,309238,840,0002,997,0002,506,752
8Mar 21, 2026 03:017,353271,196,401238,671,0003,994,0002,396,160
9Mar 21, 2026 03:017,357268,765,248238,800,0003,996,0002,293,760
10Mar 21, 2026 03:017,369268,161,892240,162,0003,002,0002,396,160
11Mar 21, 2026 03:017,378269,624,813239,471,0003,991,0002,387,968
12Mar 21, 2026 03:017,503278,920,059245,613,0001,996,0002,387,968