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 11, 2026 16:54Maya RebholzMaya RebholzError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 16:5601,269,670,7121,249,539,00010,446,0002,117,632expected "1026330 ", got "1026329 "
2Jun 11, 2026 16:5636,6971,220,326,4481,200,337,00010,680,0002,117,632
3Jun 11, 2026 16:5636,7061,220,664,5031,200,580,00010,722,0002,113,536
4Jun 11, 2026 16:5636,8521,225,793,9621,205,903,00010,214,0002,113,536
5Jun 11, 2026 16:5636,8661,225,977,9111,206,208,00010,388,0002,113,536
6Jun 11, 2026 16:5636,9671,229,315,2561,209,440,00010,501,0002,117,632
7Jun 11, 2026 16:5637,0671,233,054,5931,212,603,00010,610,0002,117,632
8Jun 11, 2026 16:5637,5661,249,373,5811,229,335,00010,368,0002,117,632
9Jun 11, 2026 16:5644,5621,479,892,0721,460,544,00010,024,0002,117,632