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 listJan 15, 2026 23:03Adam FolwarcznyAdam FolwarcznyError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 19:23Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 19:34096,108,18480,618,0006,529,0002,121,728expected "2102122 ", got "1014028 "stderr
2Oct 15, 2026 19:34095,746,92380,233,0006,513,0002,121,728expected "2106925 ", got "1018835 "stderr
3Oct 15, 2026 19:3409,474,273807,00002,121,728expected "1 ", got "0 "stderr
4Jan 15, 2026 23:0310,328360,895,552331,817,0008,995,0002,506,752
5Jan 15, 2026 23:0310,350369,786,742332,577,0008,988,0002,412,544
6Jan 15, 2026 23:0310,352370,367,504330,627,00010,987,0002,473,984
7Jan 15, 2026 23:0310,390366,053,774334,862,0007,996,0002,285,568
8Jan 15, 2026 23:0310,395365,903,612334,024,0009,000,0002,322,432
9Jan 15, 2026 23:0310,412375,778,143333,598,0009,987,0002,465,792
10Jan 15, 2026 23:0310,417365,208,162334,767,0008,993,0002,408,448
11Jan 15, 2026 23:0310,465372,050,159335,328,00010,009,0002,457,600
12Jan 15, 2026 23:0310,595371,582,610338,656,00010,988,0002,383,872