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 12, 2026 18:00Maya 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 12, 2026 18:010783,016,217761,487,00011,708,0002,129,920expected "1018208 ", got "1018207 "
2Jun 12, 2026 18:0123,269777,695,088756,361,00011,523,0002,129,920
3Jun 12, 2026 18:0123,270777,362,442755,961,00011,954,0002,129,920
4Jun 12, 2026 18:0123,272777,407,480756,113,00011,863,0002,129,920
5Jun 12, 2026 18:0123,278777,948,594756,519,00011,669,0002,125,824
6Jun 12, 2026 18:0123,310778,739,362757,877,00011,364,0002,129,920
7Jun 12, 2026 18:0123,315779,069,601758,020,00011,393,0002,125,824
8Jun 12, 2026 18:0123,346780,133,514759,054,00011,394,0002,125,824
9Jun 12, 2026 18:0123,358780,399,995759,085,00011,736,0002,129,920