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 8, 2026 10:10anboto1anboto1Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 10:110191,479,717172,968,0009,269,0002,117,632expected "1022949 ", got "1022948 "
2Jun 8, 2026 10:110189,522,597171,007,0009,263,0002,117,632expected "1023979 ", got "1023978 "
3Jun 8, 2026 10:115,494190,576,468172,004,0009,303,0002,117,632
4Jun 8, 2026 10:115,498190,665,153172,279,0009,169,0002,117,632
5Jun 8, 2026 10:115,502190,807,559172,326,0009,272,0002,117,632
6Jun 8, 2026 10:115,522191,474,723172,977,0009,257,0002,117,632
7Jun 8, 2026 10:115,527191,646,262173,105,0009,287,0002,117,632
8Jun 8, 2026 10:115,558192,686,886174,068,0009,371,0002,117,632
9Jun 8, 2026 10:115,564192,811,264174,237,0009,377,0002,117,632