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 18:15anboto1anboto1Error
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 18:150758,910,152742,827,0006,722,0002,113,536expected "1025175 ", got "1025175 65 4343 69801 78617 79077 79169 79390 79160 79329 79263 79574 79598 79274 79241 79274 0 2595 170270 2085771 2290003 2309130 2301369 2320507 2311548 2315397 2311046 2324654 2324004 2312576 2311794 2309336 0 "
2Jun 7, 2026 18:150762,191,799745,833,0006,687,0002,113,536expected "1024344 ", got "1024344 66 4348 69434 79280 78973 79093 79804 79042 78926 79230 79121 79671 78816 79330 79210 0 2651 169712 2070549 2317546 2309647 2309256 2331429 2310227 2302685 2311048 2307335 2331940 2303517 2310523 2311935 0 "
3Jun 7, 2026 18:150761,797,985745,720,0006,732,0002,117,632expected "1021270 ", got "1021270 65 4345 68724 78976 79211 78572 79132 78826 79162 79193 78712 79133 78908 79050 79261 0 2409 169690 2049724 2317248 2327883 2297223 2319908 2307687 2317170 2322236 2304760 2315396 2313648 2316321 2318697 0 "