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 04:07e1011e1011Error
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 04:1006,506,046,8396,492,952,0002,055,0002,113,536expected "1022676 ", got "1022675 "
2Oct 17, 2026 04:1006,468,065,4056,452,894,0002,128,0002,113,536expected "1026999 ", got "1026998 "
3Oct 17, 2026 04:1006,684,992,2806,672,065,0002,017,0002,113,536expected "1021083 ", got "1021082 "
4Oct 17, 2026 04:10196,0196,479,729,6556,466,399,0002,244,0002,113,536
5Oct 17, 2026 04:10196,4066,492,954,5886,479,390,0002,024,0002,113,536
6Oct 17, 2026 04:10197,4786,528,614,0356,513,514,0003,271,0002,113,536
7Oct 17, 2026 04:10197,6526,533,741,9586,520,508,0002,017,0002,113,536
8Oct 17, 2026 04:10199,3566,589,705,4306,576,527,0002,238,0002,113,536
9Oct 17, 2026 04:10202,3476,688,345,0296,675,471,0002,003,0002,113,536