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 16:23anboto1anboto1Error
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 16:240400,055,795389,659,0001,002,0002,113,536expected "1025589 ", got "300146793 30000000 2542 170149 2067343 2313126 2320106 2312340 2318913 2316296 2311074 2315633 2308441 2324073 2309276 2306540 2304148 0 "
2Jun 7, 2026 16:240400,262,498389,557,0001,003,0002,113,536expected "1022779 ", got "300269646 30000000 2623 170029 2055195 2294475 2309834 2327554 2326137 2308777 2318747 2338338 2326272 2305927 2314223 2309342 2292527 0 "
3Jun 7, 2026 16:240399,743,956389,397,0001,003,0002,113,536expected "1020374 ", got "300372036 30000000 2569 170634 2068509 2306725 2318947 2302275 2308754 2310163 2302414 2324348 2327041 2307240 2318988 2322471 2308922 0 "