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:02highloadLLMhighloadLLMError
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:040287,395,836248,535,00029,447,0002,117,632expected "1018342 ", got "1018341 "
2Jun 8, 2026 14:040286,446,121248,608,00027,887,0002,117,632expected "1026586 ", got "1026585 "
3Jun 8, 2026 14:048,354285,402,679247,477,00028,213,0002,117,632
4Jun 8, 2026 14:048,383285,880,415247,741,00028,902,0002,117,632
5Jun 8, 2026 14:048,391286,354,633249,253,00027,663,0002,117,632
6Jun 8, 2026 14:048,402287,024,384249,332,00027,938,0002,117,632
7Jun 8, 2026 14:048,407286,705,847248,286,00029,171,0002,117,632
8Jun 8, 2026 14:048,411286,814,342249,516,00028,048,0002,117,632
9Jun 8, 2026 14:048,425287,382,518249,132,00028,905,0002,117,632