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 7, 2026 16:29highloadLLMhighloadLLMError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2026 16:300814,903,566753,869,00051,886,0002,113,536expected "1021866 ", got "1021887 "
2Jun 7, 2026 16:300811,048,710751,317,00050,326,0002,113,536expected "1026356 ", got "1026358 "
3Jun 7, 2026 16:300821,933,729760,738,00052,091,0002,113,536expected "1022991 ", got "1023020 "
4Jun 7, 2026 16:3024,159806,586,580746,945,00050,314,0002,113,536
5Jun 7, 2026 16:3024,211808,164,977748,425,00050,562,0002,113,536
6Jun 7, 2026 16:3024,303811,216,854751,869,00050,145,0002,113,536
7Jun 7, 2026 16:3024,331812,138,391751,799,00051,148,0002,113,536
8Jun 7, 2026 16:3024,469816,650,770756,146,00051,348,0002,113,536
9Jun 7, 2026 16:3024,518818,365,642757,500,00051,608,0002,113,536