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:57highloadLLMhighloadLLMError
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:580286,541,418247,935,00029,412,0002,117,632expected "1020571 ", got "1020570 "
2Jun 8, 2026 14:580286,091,597248,176,00028,094,0002,113,536expected "1025411 ", got "1025410 "
3Jun 8, 2026 14:588,377285,722,151248,140,00028,310,0002,117,632
4Jun 8, 2026 14:588,378286,128,182247,900,00028,603,0002,117,632
5Jun 8, 2026 14:588,378286,332,997248,118,00028,367,0002,117,632
6Jun 8, 2026 14:588,391286,159,790248,282,00028,648,0002,117,632
7Jun 8, 2026 14:588,392286,155,627247,307,00029,643,0002,117,632
8Jun 8, 2026 14:588,416287,379,282249,515,00028,230,0002,117,632
9Jun 8, 2026 14:588,446288,028,346249,902,00028,825,0002,117,632