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 8, 2026 05:16anboto1anboto1Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 05:170192,388,808172,922,0009,752,0002,117,632expected "1018725 ", got "1018725 283352996 337986828 2464 169799 2054910 2307980 2319849 2322430 2317007 2309473 2313096 2307934 2319842 2310134 2321721 2302606 2320755 "
2Jun 8, 2026 05:170191,659,440172,173,00010,271,0002,117,632expected "1027096 ", got "1027096 282652684 335524088 2508 169777 2062008 2312788 2298755 2309079 2296350 2323590 2313823 2319450 2327052 2315640 2320098 2317502 2311580 "
3Jun 8, 2026 05:170193,571,079173,984,00010,345,0002,117,632expected "1021167 ", got "1021167 280240948 344574412 2578 171703 2066611 2294318 2315858 2319977 2315947 2326934 2305967 2319787 2314333 2304647 2308721 2325153 2307466 "