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 listMar 15, 2026 03:07limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 19:48Andrew Epstein11.95CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 19:49033,612,26419,390,0003,137,0002,113,536expected "349081 ", got "329363"
2Oct 15, 2026 19:49016,699,6295,062,0001,121,0002,121,728expected "409 ", got "387"
3Oct 15, 2026 19:4950928,076,18515,764,0001,056,0002,113,536
4Mar 15, 2026 03:0713,788478,502,160450,004,0005,000,0002,506,752
5Mar 15, 2026 03:0713,814483,063,904450,855,0004,998,0002,383,872
6Mar 15, 2026 03:0714,293495,154,123464,677,0006,995,0002,506,752
7Mar 15, 2026 03:0714,335500,806,023466,059,0007,000,0002,506,752
8Mar 15, 2026 03:0714,423499,378,349471,971,0003,999,0002,449,408
9Mar 15, 2026 03:0714,544500,779,646472,963,0006,999,0002,371,584
10Mar 15, 2026 03:0714,741514,489,765479,472,0006,992,0002,506,752
11Mar 15, 2026 03:0714,751509,479,226482,788,0003,998,0002,473,984
12Mar 15, 2026 03:0716,791586,578,576550,113,0004,000,0002,281,472