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 14:24highloadLLMhighloadLLMError
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 14:250285,536,366247,347,00028,962,0002,117,632expected "1025368 ", got "1025367 "
2Jun 8, 2026 14:250287,114,524247,867,00029,552,0002,117,632expected "1023457 ", got "1023456 "
3Jun 8, 2026 14:258,361285,185,716246,476,00029,437,0002,117,632
4Jun 8, 2026 14:258,361285,681,267247,313,00028,616,0002,117,632
5Jun 8, 2026 14:258,367285,325,460247,761,00028,368,0002,117,632
6Jun 8, 2026 14:258,372285,631,936247,341,00028,942,0002,117,632
7Jun 8, 2026 14:258,382285,891,330248,649,00027,986,0002,117,632
8Jun 8, 2026 14:258,405286,646,732247,518,00029,862,0002,117,632
9Jun 8, 2026 14:258,428287,830,515248,832,00029,321,0002,117,632