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 12:07highloadLLMhighloadLLMError
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 12:090296,387,940259,537,00027,626,0002,117,632expected "1023559 ", got "1023558 "
2Jun 8, 2026 12:090298,465,013260,801,00028,303,0002,117,632expected "1024955 ", got "1024954 "
3Jun 8, 2026 12:090298,494,987260,704,00028,555,0002,117,632expected "1022157 ", got "1022156 "
4Jun 8, 2026 12:090297,247,322259,728,00028,224,0002,117,632expected "1020554 ", got "1020553 "
5Jun 8, 2026 12:098,661295,116,221257,911,00027,930,0002,117,632
6Jun 8, 2026 12:098,669295,374,420257,077,00029,002,0002,117,632
7Jun 8, 2026 12:098,704296,494,454259,839,00027,414,0002,117,632
8Jun 8, 2026 12:098,716296,849,688259,717,00027,913,0002,117,632
9Jun 8, 2026 12:098,724297,252,291258,660,00029,259,0002,117,632