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:56e1011e1011Error
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:5907,017,541,4387,004,489,0002,128,0002,113,536expected "1023921 ", got "1023920 "
2Oct 17, 2026 03:5907,045,603,6347,032,614,0002,080,0002,113,536expected "1025142 ", got "1025141 "
3Oct 17, 2026 03:5907,018,381,1897,004,137,0003,007,0002,113,536expected "1026518 ", got "1026517 "
4Oct 17, 2026 03:5907,020,614,1927,006,857,0002,266,0002,113,536expected "1022430 ", got "1022429 "
5Oct 17, 2026 03:59212,4117,020,668,5507,007,494,0002,074,0002,113,536
6Oct 17, 2026 03:59212,5057,023,984,0757,010,609,0002,088,0002,113,536
7Oct 17, 2026 03:59213,1407,044,683,3877,031,505,0002,134,0002,113,536
8Oct 17, 2026 03:59213,1697,045,532,0847,032,535,0002,067,0002,113,536
9Oct 17, 2026 03:59213,8017,066,360,5697,053,362,0002,086,0002,113,536