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 29, 2026 05:20Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 17:37Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 17:40016,574,1231,602,0003,203,0002,117,632expected "558 ", got "526 "
2Oct 31, 2026 17:400183,452,470169,537,0003,132,0002,113,536expected "2908139 ", got "1991444 "
3Oct 31, 2026 17:40022,920,9769,016,0003,455,0002,113,536expected "69040 ", got "60633 "
4Mar 29, 2026 05:2014,083489,388,437460,742,0003,997,0002,465,792
5Mar 29, 2026 05:2014,126498,073,499459,180,0006,987,0002,453,504
6Mar 29, 2026 05:2014,158499,295,394460,216,0006,988,0002,314,240
7Mar 29, 2026 05:2014,169492,502,175462,590,0004,995,0002,498,560
8Mar 29, 2026 05:2014,238503,631,902463,871,0005,998,0002,465,792
9Mar 29, 2026 05:2014,410501,963,391470,544,0004,995,0002,457,600
10Mar 29, 2026 05:2014,430504,704,887473,197,0003,001,0002,453,504
11Mar 29, 2026 05:2014,476505,843,178471,725,0005,996,0002,465,792
12Mar 29, 2026 05:2014,516504,202,998475,036,0004,000,0002,322,432