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 28, 2026 01:23Victor 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
1Jun 28, 2026 01:240117,774,481108,733,0001,131,0002,117,632expected "1022397 ", got "1022396 "stderr
2Jun 28, 2026 01:243,310116,910,975108,136,0001,124,0002,117,632stderr
3Jun 28, 2026 01:243,313117,183,236108,215,0001,128,0002,117,632stderr
4Jun 28, 2026 01:243,318117,371,115108,349,0001,165,0002,117,632stderr
5Jun 28, 2026 01:243,318117,200,495108,357,0001,164,0002,117,632stderr
6Jun 28, 2026 01:243,319117,182,610108,425,0001,115,0002,117,632stderr
7Jun 28, 2026 01:243,321117,444,714108,492,0001,132,0002,117,632stderr
8Jun 28, 2026 01:243,322117,532,110108,511,0001,122,0002,117,632stderr
9Jun 28, 2026 01:243,325117,519,331108,548,0001,196,0002,117,632stderr