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 listDec 22, 2025 22:30zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 5, 2026 14:24Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 14:24010,976,4641,593,0001,592,0002,121,728expected "16384 ", got "32 "stderr
2Jul 5, 2026 14:24010,980,6241,582,0001,582,0002,121,728expected "16384 ", got "32 "stderr
3Jul 5, 2026 14:24014,957,1541,599,0001,599,0002,121,728expected "16384 ", got "32 "stderr
4Dec 22, 2025 22:304,237165,064,249128,848,00010,987,0002,338,816
5Dec 22, 2025 22:304,247165,006,218132,152,0008,009,0002,506,752
6Dec 22, 2025 22:304,252164,461,316129,283,00011,024,0002,330,624
7Dec 22, 2025 22:304,263161,790,846129,694,00010,974,0002,306,048
8Dec 22, 2025 22:304,265159,349,949131,770,0008,984,0002,314,240
9Dec 22, 2025 22:304,275165,700,977132,080,0009,005,0002,330,624
10Dec 22, 2025 22:304,293170,056,057134,679,0006,983,0002,424,832
11Dec 22, 2025 22:304,293173,281,000127,701,00013,967,0002,338,816
12Dec 22, 2025 22:304,306169,329,842126,191,00015,898,0002,400,256