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 9, 2026 08:23Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 20:46Andrew Epstein13.27CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 20:540720,505,223667,344,00042,416,0002,117,632expected "2101438 ", got "2079571 "
2Oct 15, 2026 20:54064,046,11813,222,00040,299,0002,117,632expected "4748 ", got "4777 "
3Oct 15, 2026 20:541,59063,042,25812,259,00040,242,0002,117,632
4Jan 9, 2026 08:2374,9132,499,167,3702,433,155,00038,986,0002,473,984
5Jan 9, 2026 08:2374,9262,497,069,8822,434,578,00037,977,0002,482,176
6Jan 9, 2026 08:2374,9422,495,385,5262,435,116,00037,986,0002,285,568
7Jan 9, 2026 08:2375,2872,512,925,0362,444,492,00039,975,0002,490,368
8Jan 9, 2026 08:2375,3802,511,515,3922,449,561,00037,977,0002,297,856
9Jan 9, 2026 08:2375,4212,516,475,7292,449,906,00038,982,0002,465,792
10Jan 9, 2026 08:2375,4702,515,998,5832,451,530,00038,976,0002,289,664
11Jan 9, 2026 08:2376,0402,537,605,3902,471,361,00037,974,0002,490,368
12Jan 9, 2026 08:2376,2252,546,228,8732,476,438,00038,975,0002,482,176