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 listAug 24, 2026 23:19Victor MerckléVictor MerckléError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 24, 2026 23:200152,773,310142,386,0002,044,0002,121,728expected "1021668 ", got "1021667 "stderr
2Aug 24, 2026 23:204,342152,372,641141,285,0002,024,0002,121,728stderr
3Aug 24, 2026 23:204,361153,091,310141,907,0002,035,0002,121,728stderr
4Aug 24, 2026 23:204,364153,595,312142,003,0002,040,0002,121,728stderr
5Aug 24, 2026 23:204,365153,103,765141,880,0002,170,0002,121,728stderr
6Aug 24, 2026 23:204,366153,156,377142,016,0002,066,0002,121,728stderr
7Aug 24, 2026 23:204,397154,226,198143,052,0002,064,0002,121,728stderr
8Aug 24, 2026 23:204,409154,517,824143,481,0002,044,0002,121,728stderr
9Aug 24, 2026 23:204,440156,151,941144,490,0002,056,0002,121,728stderr