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 8, 2026 08:33highloadLLMhighloadLLMError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 08:330312,010,000274,769,00028,021,0002,117,632expected "1026006 ", got "1026004 "
2Jun 8, 2026 08:330312,619,190273,913,00027,569,0002,117,632expected "1023330 ", got "1023328 "
3Jun 8, 2026 08:330311,675,551274,305,00027,770,0002,117,632expected "1019344 ", got "1019343 "
4Jun 8, 2026 08:339,158311,901,777274,143,00028,082,0002,117,632
5Jun 8, 2026 08:339,173311,957,832274,423,00028,311,0002,117,632
6Jun 8, 2026 08:339,179312,124,843275,012,00027,899,0002,117,632
7Jun 8, 2026 08:339,183312,682,938275,228,00027,828,0002,117,632
8Jun 8, 2026 08:339,199313,173,855274,686,00028,892,0002,117,632
9Jun 8, 2026 08:339,235314,400,841275,443,00029,319,0002,117,632