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 16, 2026 23:15Dominique 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:410253,145,768235,616,0006,777,0002,113,536expected "2905877 ", got "1989899 "
2Oct 31, 2026 17:41016,298,6714,721,0001,063,0002,117,632expected "339 ", got "323 "
3Oct 31, 2026 17:414912,140,95201,622,0002,117,632
4Mar 16, 2026 23:1526,506901,239,824862,693,00011,995,0002,289,664
5Mar 16, 2026 23:1526,568902,574,680864,757,00011,996,0002,285,568
6Mar 16, 2026 23:1526,614903,760,666864,271,00013,988,0002,355,200
7Mar 16, 2026 23:1526,627901,792,869867,710,00010,996,0002,490,368
8Mar 16, 2026 23:1526,653905,367,625866,559,00012,993,0002,367,488
9Mar 16, 2026 23:1526,737904,348,569871,335,00010,991,0002,404,352
10Mar 16, 2026 23:1526,768915,995,681873,350,0009,992,0002,355,200
11Mar 16, 2026 23:1526,898913,104,730877,647,0009,995,0002,404,352
12Mar 16, 2026 23:1526,979913,051,201878,332,00011,990,0002,494,464