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 7, 2026 20:56anboto1anboto1Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2026 20:570428,931,672405,807,00013,314,0002,117,632expected "1025109 ", got "1025109 1145171336 353244916 2314196 2307610 2292863 2312862 2318681 2318950 2293820 2301043 2315983 2330797 2334106 "
2Jun 7, 2026 20:570421,734,947398,907,00013,066,0002,117,632expected "1024417 ", got "1024417 1116296556 356299544 2309618 2305922 2313139 2317933 2321065 2304486 2309078 2320577 2317836 2317704 2328585 "
3Jun 7, 2026 20:570429,218,217406,360,00013,457,0002,117,632expected "1023634 ", got "1023634 1143493392 357370824 2308464 2306281 2311049 2318918 2304335 2315522 2324060 2314235 2318053 2311975 2315571 "