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 13:12highloadLLMhighloadLLMError
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 13:120295,983,620258,494,00028,231,0002,117,632expected "1026005 ", got "1026004 "
2Jun 8, 2026 13:120297,742,642258,995,00029,154,0002,117,632expected "1020220 ", got "1020219 "
3Jun 8, 2026 13:128,665295,149,346257,178,00028,770,0002,117,632
4Jun 8, 2026 13:128,682295,846,116258,536,00028,001,0002,117,632
5Jun 8, 2026 13:128,693296,198,303259,052,00027,839,0002,117,632
6Jun 8, 2026 13:128,698296,371,596259,135,00027,929,0002,117,632
7Jun 8, 2026 13:128,727297,698,413260,309,00027,683,0002,113,536
8Jun 8, 2026 13:128,728298,219,259259,173,00028,872,0002,117,632
9Jun 8, 2026 13:128,732297,481,150260,133,00028,026,0002,117,632