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 listJun 27, 2026 18:52Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 14:50Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 14:52010,750,83901,529,0002,117,632expected "18 ", got "14 "
2Oct 31, 2026 14:5204,337,439,9564,325,376,0002,396,0002,113,536expected "2106034 ", got "1761508 "
3Oct 31, 2026 14:5204,343,062,4094,332,585,0001,181,0002,113,536expected "2104845 ", got "1760317 "
4Jun 27, 2026 18:523,391119,718,075110,779,0001,147,0002,113,536
5Jun 27, 2026 18:523,399120,121,602110,999,0001,170,0002,113,536
6Jun 27, 2026 18:523,399120,230,794111,018,0001,179,0002,113,536
7Jun 27, 2026 18:523,404120,598,215111,173,0001,181,0002,113,536
8Jun 27, 2026 18:523,406120,538,582111,251,0001,169,0002,113,536
9Jun 27, 2026 18:523,409120,597,430111,336,0001,190,0002,113,536
10Jun 27, 2026 18:523,409120,603,176111,310,0001,197,0002,113,536
11Jun 27, 2026 18:523,410120,843,082111,353,0001,188,0002,113,536
12Jun 27, 2026 18:523,418121,224,887111,641,0001,175,0002,113,536