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:06highloadLLMhighloadLLMError
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:070288,684,465249,500,00029,293,0002,117,632expected "1023251 ", got "1023250 "
2Jun 8, 2026 14:070286,026,929248,167,00028,158,0002,117,632expected "1019691 ", got "1019689 "
3Jun 8, 2026 14:070285,869,178248,609,00028,047,0002,117,632expected "1020822 ", got "1020820 "
4Jun 8, 2026 14:078,359285,557,905248,040,00027,811,0002,113,536
5Jun 8, 2026 14:078,398286,973,529248,565,00028,581,0002,117,632
6Jun 8, 2026 14:078,435288,083,140250,527,00027,829,0002,117,632
7Jun 8, 2026 14:078,443287,978,879248,977,00029,661,0002,117,632
8Jun 8, 2026 14:078,443288,290,664250,765,00027,868,0002,117,632
9Jun 8, 2026 14:078,455288,389,949250,549,00028,485,0002,117,632