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 23, 2026 18:12Victor 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 23, 2026 18:130114,903,643104,547,0002,161,0002,121,728expected "1024545 ", got "1024544 "stderr
2Aug 23, 2026 18:133,217114,385,487104,065,0002,116,0002,121,728stderr
3Aug 23, 2026 18:133,221114,749,511104,178,0002,123,0002,121,728stderr
4Aug 23, 2026 18:133,223114,554,044104,225,0002,164,0002,121,728stderr
5Aug 23, 2026 18:133,235115,225,293104,530,0002,242,0002,121,728stderr
6Aug 23, 2026 18:133,235115,213,065104,550,0002,221,0002,121,728stderr
7Aug 23, 2026 18:133,236115,176,402104,648,0002,168,0002,121,728stderr
8Aug 23, 2026 18:133,236115,242,541104,507,0002,311,0002,121,728stderr
9Aug 23, 2026 18:133,240115,066,560104,771,0002,153,0002,121,728stderr