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 12, 2026 23:37Adam FolwarcznyAdam FolwarcznyError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 20:49Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 20:550160,117,131137,364,00012,241,0002,113,536expected "2104331 ", got "1187682 "
2Oct 15, 2026 20:550160,343,446136,108,00012,350,0002,113,536expected "2102498 ", got "1186737 "
3Oct 15, 2026 20:55012,397,23901,984,0002,117,632expected "376 ", got "361 "
4Jan 12, 2026 23:3718,282635,752,836587,291,00016,007,0002,310,144
5Jan 12, 2026 23:3718,292632,301,415587,644,00015,990,0002,486,272
6Jan 12, 2026 23:3718,313633,089,999587,354,00016,981,0002,408,448
7Jan 12, 2026 23:3718,319638,417,534593,532,00010,991,0002,314,240
8Jan 12, 2026 23:3718,354632,716,593588,686,00016,990,0002,322,432
9Jan 12, 2026 23:3718,364635,182,149595,017,00011,000,0002,314,240
10Jan 12, 2026 23:3718,429638,490,320596,167,00012,003,0002,322,432
11Jan 12, 2026 23:3718,469631,768,907594,506,00014,987,0002,383,872
12Jan 12, 2026 23:3719,041654,899,862606,378,00021,977,0002,490,368