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 05:41anboto1anboto1Error
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 05:420193,139,418173,677,00010,281,0002,117,632expected "1023375 ", got "1023374 "
2Jun 8, 2026 05:425,504190,929,462171,916,0009,726,0002,117,632
3Jun 8, 2026 05:425,527191,718,739172,695,0009,709,0002,117,632
4Jun 8, 2026 05:425,529192,218,053172,742,0009,744,0002,117,632
5Jun 8, 2026 05:425,538191,998,393172,815,0009,951,0002,117,632
6Jun 8, 2026 05:425,543192,156,010172,853,00010,093,0002,117,632
7Jun 8, 2026 05:425,545192,309,300173,545,0009,454,0002,117,632
8Jun 8, 2026 05:425,588193,598,496174,147,00010,270,0002,117,632
9Jun 8, 2026 05:425,594193,871,592174,264,00010,357,0002,117,632