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 7, 2026 14:07zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 09:18Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 09:19010,915,0871,044,0002,115,0002,121,728expected "16384 ", got "1056 "stderr
2Jul 4, 2026 09:19010,968,1111,043,0002,135,0002,121,728expected "16384 ", got "1056 "stderr
3Jul 4, 2026 09:19010,832,2371,042,0002,118,0002,121,728expected "16384 ", got "1056 "stderr
4Jan 7, 2026 14:073,106121,984,761101,497,0001,004,0002,404,352
5Jan 7, 2026 14:093,146131,655,089102,817,000998,0002,273,280
6Jan 7, 2026 14:093,176133,006,599102,812,0001,996,0002,535,424
7Jan 7, 2026 14:073,184126,591,278103,086,0002,001,0002,535,424
8Jan 7, 2026 14:093,196126,675,364102,450,0003,013,0002,412,544
9Jan 7, 2026 14:073,208126,279,131104,882,000998,0002,273,280