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 listMay 1, 2026 11:26Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 1, 2026 11:270687,891,555564,789,000105,960,0002,347,008expected "1022826 ", got "1022828 "
2May 1, 2026 11:2719,803672,381,094544,595,000108,919,0002,473,984
3May 1, 2026 11:2719,879674,615,429548,180,000107,838,0002,326,528
4May 1, 2026 11:2720,933704,095,283585,824,000104,968,0002,322,432
5May 1, 2026 11:2721,099714,869,051583,405,000112,884,0002,416,640
6May 1, 2026 11:2721,260720,883,864594,650,000106,937,0002,416,640
7May 1, 2026 11:2721,366721,004,486595,239,000109,859,0002,359,296
8May 1, 2026 11:2722,967780,639,336644,088,000113,838,0002,539,520
9May 1, 2026 11:2723,133786,205,093655,486,000107,915,0002,387,968