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 listOct 17, 2026 03:12e1011e1011Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 17, 2026 03:1607,142,922,4427,129,871,0002,007,0002,121,728expected "1026732 ", got "1026731 "
2Oct 17, 2026 03:1606,921,665,8146,908,350,0002,003,0002,121,728expected "1024373 ", got "1024372 "
3Oct 17, 2026 03:16208,0986,878,392,3096,865,243,0002,003,0002,121,728
4Oct 17, 2026 03:16208,3586,887,148,7916,872,819,0003,014,0002,121,728
5Oct 17, 2026 03:16208,5666,893,942,4956,879,429,0003,276,0002,121,728
6Oct 17, 2026 03:16209,1166,912,244,6986,898,838,0002,006,0002,121,728
7Oct 17, 2026 03:16209,1856,914,404,3656,901,117,0002,001,0002,121,728
8Oct 17, 2026 03:16211,3706,986,454,1826,972,111,0003,125,0002,121,728
9Oct 17, 2026 03:16211,9587,005,511,9046,992,629,0002,016,0002,121,728